From da367f4bd4e910d74c04487c84daa8b5e70e0016 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Sun, 18 Jan 2009 17:06:29 +0000 Subject: [PATCH] Fix TYPE_BOOL settings format string. Boolean settings should really use 'on'/'off', but this is currently impossible due to the fixed field width requirement introduced in r15052. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19790 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/lib/configfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/plugins/lib/configfile.c b/apps/plugins/lib/configfile.c index 063efdde2e..5e1e776f39 100644 --- a/apps/plugins/lib/configfile.c +++ b/apps/plugins/lib/configfile.c @@ -63,7 +63,7 @@ int configfile_save(const char *filename, struct configdata *cfg, break; case TYPE_BOOL: - rb->fdprintf(fd, "%s: 10%d\n", + rb->fdprintf(fd, "%s: %10d\n", cfg[i].name, (int)*cfg[i].bool_p); break;