summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Pennequin <nicolas.pennequin@free.fr>2008-09-04 21:57:01 +0000
committerNicolas Pennequin <nicolas.pennequin@free.fr>2008-09-04 21:57:01 +0000
commit939459e10ec227b42c4b9dcd61b1ab55aee2c29c (patch)
tree383ca284a06f4336e72b94f393b84787bd9e455e
parent6ea90671d8c5e831c865dccb1e8b5df6704f6824 (diff)
downloadrockbox-939459e10ec227b42c4b9dcd61b1ab55aee2c29c.tar.gz
rockbox-939459e10ec227b42c4b9dcd61b1ab55aee2c29c.zip
Fix the bug reported in FS#9350: the WPS would crash on %mm or %cf if they weren't in conditionals.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18420 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/gui/gwps-common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c
index dba703c1aa..19d087d77a 100644
--- a/apps/gui/gwps-common.c
+++ b/apps/gui/gwps-common.c
@@ -1138,12 +1138,12 @@ static char *get_token_value(struct gui_wps *gwps,
1138 case WPS_TOKEN_REPEAT_MODE: 1138 case WPS_TOKEN_REPEAT_MODE:
1139 if (intval) 1139 if (intval)
1140 *intval = global_settings.repeat_mode + 1; 1140 *intval = global_settings.repeat_mode + 1;
1141 snprintf(buf, buf_size, "%d", *intval); 1141 snprintf(buf, buf_size, "%d", global_settings.repeat_mode + 1);
1142 return buf; 1142 return buf;
1143 case WPS_TOKEN_RTC_12HOUR_CFG: 1143 case WPS_TOKEN_RTC_12HOUR_CFG:
1144 if (intval) 1144 if (intval)
1145 *intval = global_settings.timeformat + 1; 1145 *intval = global_settings.timeformat + 1;
1146 snprintf(buf, buf_size, "%d", *intval); 1146 snprintf(buf, buf_size, "%d", global_settings.timeformat + 1);
1147 return buf; 1147 return buf;
1148#if CONFIG_RTC 1148#if CONFIG_RTC
1149 case WPS_TOKEN_RTC_DAY_OF_MONTH: 1149 case WPS_TOKEN_RTC_DAY_OF_MONTH: