1
0
Fork 0
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:
Linus Nielsen Feltzing 2005-11-30 09:06:43 +00:00
parent 6e46156f92
commit 36cca23c18

View file

@ -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");