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:
parent
f65ceebee8
commit
b048c91eb3
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue