diff options
Diffstat (limited to 'apps/settings.h')
-rw-r--r-- | apps/settings.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/settings.h b/apps/settings.h index 75eddb41f6..1cf43d9a2c 100644 --- a/apps/settings.h +++ b/apps/settings.h | |||
@@ -55,7 +55,7 @@ struct opt_items { | |||
55 | #ifndef ROCKBOX_DIR | 55 | #ifndef ROCKBOX_DIR |
56 | #error ROCKBOX_DIR not defined (should be in autoconf.h) | 56 | #error ROCKBOX_DIR not defined (should be in autoconf.h) |
57 | #endif | 57 | #endif |
58 | #define ROCKBOX_DIR_LEN sizeof(ROCKBOX_DIR) | 58 | #define ROCKBOX_DIR_LEN (sizeof(ROCKBOX_DIR)-1) |
59 | #endif /* def __PCTOOL__ */ | 59 | #endif /* def __PCTOOL__ */ |
60 | 60 | ||
61 | 61 | ||
@@ -288,7 +288,7 @@ bool set_int_ex(const unsigned char* string, const char* unit, int voice_unit, | |||
288 | const char* (*formatter)(char*, size_t, int, const char*), | 288 | const char* (*formatter)(char*, size_t, int, const char*), |
289 | int32_t (*get_talk_id)(int, int)); | 289 | int32_t (*get_talk_id)(int, int)); |
290 | 290 | ||
291 | void set_file(const char* filename, char* setting, int maxlen); | 291 | void set_file(const char* filename, char* setting, const int maxlen); |
292 | 292 | ||
293 | bool set_option(const char* string, const void* variable, enum optiontype type, | 293 | bool set_option(const char* string, const void* variable, enum optiontype type, |
294 | const struct opt_items* options, int numoptions, void (*function)(int)); | 294 | const struct opt_items* options, int numoptions, void (*function)(int)); |