summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2005-11-30 09:06:43 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2005-11-30 09:06:43 +0000
commit36cca23c1884de8d1925dc7777600121b96de0b5 (patch)
tree35750739f0e375fcd491791c1c9a4239e349c0d2
parent6e46156f9257ac11dc0ff74a37b14a0b9ef7f033 (diff)
downloadrockbox-36cca23c1884de8d1925dc7777600121b96de0b5.zip
rockbox-36cca23c1884de8d1925dc7777600121b96de0b5.tar.gz
rockbox-36cca23c1884de8d1925dc7777600121b96de0b5.tar.bz2
rockbox-36cca23c1884de8d1925dc7777600121b96de0b5.tar.xz
And now also allocates the correct amount
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8113 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--tools/bmp2rb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/bmp2rb.c b/tools/bmp2rb.c
index 48068b1..f7b92d0 100644
--- a/tools/bmp2rb.c
+++ b/tools/bmp2rb.c
@@ -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");