forked from len0rd/rockbox
And now also allocates the correct amount
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8113 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
6e46156f92
commit
36cca23c18
1 changed files with 1 additions and 1 deletions
|
|
@ -320,7 +320,7 @@ int transform_bitmap(const struct RGBQUAD *src, long width, long height,
|
|||
return 1;
|
||||
}
|
||||
|
||||
*dest = (unsigned short *)malloc(dst_w * dst_h);
|
||||
*dest = (unsigned short *)malloc(dst_w * dst_h * sizeof(short));
|
||||
if (*dest == NULL)
|
||||
{
|
||||
debugf("error - Out of memory.\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue