From b048c91eb3565e8c5c714afbfaf1a455fe062c3f Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Wed, 16 Nov 2011 13:43:28 +0000 Subject: [PATCH] OOPS! Don't overwrite the trailing \0 from the skin text with the first alloc (should fix FS#12388) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30998 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/skin_engine/skin_parser.c | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/gui/skin_engine/skin_parser.c b/apps/gui/skin_engine/skin_parser.c index 3814029bdd..33561bfed4 100644 --- a/apps/gui/skin_engine/skin_parser.c +++ b/apps/gui/skin_engine/skin_parser.c @@ -2191,6 +2191,7 @@ bool skin_data_load(enum screen_type screen, struct wps_data *wps_data, close(fd); if (start <= 0) return false; + start++; skin_buffer = &wps_buffer[start]; buffersize -= start; }