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
This commit is contained in:
Jonathan Gordon 2011-11-16 13:43:28 +00:00
parent f65ceebee8
commit b048c91eb3

View file

@ -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;
}