diff options
Diffstat (limited to 'apps/gui')
-rw-r--r-- | apps/gui/skin_engine/skin_parser.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/gui/skin_engine/skin_parser.c b/apps/gui/skin_engine/skin_parser.c index 8fca8724f6..68cb01470c 100644 --- a/apps/gui/skin_engine/skin_parser.c +++ b/apps/gui/skin_engine/skin_parser.c @@ -228,14 +228,15 @@ static int parse_image_display(struct skin_element *element, struct wps_data *wps_data) { char *label = element->params[0].data.text; - char sublabel = label[1]; + char sublabel = '\0'; int subimage; struct gui_img *img; struct image_display *id = skin_buffer_alloc(sizeof(struct image_display)); - if (element->params_count == 1) + if (element->params_count == 1 && strlen(label) <= 2) { /* backwards compatability. Allow %xd(Aa) to still work */ + sublabel = label[1]; label[1] = '\0'; } /* sanity check */ |