Fix silly mistake

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30595 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Frank Gevaerts 2011-09-24 19:12:37 +00:00
parent 5903c07ad7
commit 40f05b6ca1

View file

@ -935,7 +935,7 @@ const char *get_token_value(struct gui_wps *gwps,
case SKIN_TOKEN_LIST_ITEM_NUMBER:
if (intval)
*intval = skinlist_get_item_number() + 1;
snprintf(buf, buf_size, "%d",skinlist_get_item_number()) + 1;
snprintf(buf, buf_size, "%d",skinlist_get_item_number() + 1);
return buf;
case SKIN_TOKEN_LIST_ITEM_IS_SELECTED:
return skinlist_is_selected_item()?"s":"";