From a407e281dd19b195d49c2fac067b346683aff729 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Mon, 26 Jul 2010 02:42:23 +0200 Subject: [PATCH] Fix ROCKBOX_DIR_LEN again --- apps/settings.c | 1 + firmware/export/paths.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/settings.c b/apps/settings.c index e5d988c9e..9549d779f 100644 --- a/apps/settings.c +++ b/apps/settings.c @@ -1198,6 +1198,7 @@ bool set_option(const char* string, const void* variable, enum optiontype type, if (!option_screen(&item, NULL, false, NULL)) { if (type == BOOL) + *(bool*)variable = (temp == 1); else *(int*)variable = temp; diff --git a/firmware/export/paths.h b/firmware/export/paths.h index b9bcfaab2..b2383f988 100644 --- a/firmware/export/paths.h +++ b/firmware/export/paths.h @@ -52,7 +52,7 @@ #ifndef ROCKBOX_DIR #error ROCKBOX_DIR not defined (should be in autoconf.h) #endif -#define ROCKBOX_DIR_LEN sizeof(ROCKBOX_DIR) +#define ROCKBOX_DIR_LEN (sizeof(ROCKBOX_DIR)-1) #endif /* def __PCTOOL__ */ #ifndef APPLICATION -- 2.11.4.GIT