forked from len0rd/rockbox
FIX: The previous update produced a buffer overflow, which broke e.g. the jpeg viewer
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4656 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
b3acd275ce
commit
4c67f0f3bb
1 changed files with 1 additions and 1 deletions
|
@ -469,7 +469,7 @@ int gray_init_buffer(unsigned char *gbuf, int gbuf_size, int width,
|
|||
graybuf->depth = depth;
|
||||
graybuf->cur_plane = 0;
|
||||
graybuf->flags = 0;
|
||||
graybuf->bitpattern = (unsigned long *) gbuf + sizeof(tGraybuf);
|
||||
graybuf->bitpattern = (unsigned long *) (gbuf + sizeof(tGraybuf));
|
||||
graybuf->data = (unsigned char *) (graybuf->bitpattern + depth + 1);
|
||||
graybuf->curfont = FONT_SYSFIXED;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue