summaryrefslogtreecommitdiff
path: root/tools/bmp2rb.c
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 /tools/bmp2rb.c
parent6e46156f9257ac11dc0ff74a37b14a0b9ef7f033 (diff)
downloadrockbox-36cca23c1884de8d1925dc7777600121b96de0b5.tar.gz
rockbox-36cca23c1884de8d1925dc7777600121b96de0b5.zip
And now also allocates the correct amount
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8113 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools/bmp2rb.c')
-rw-r--r--tools/bmp2rb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/bmp2rb.c b/tools/bmp2rb.c
index 48068b14a5..f7b92d0e6e 100644
--- a/tools/bmp2rb.c
+++ b/tools/bmp2rb.c
@@ -320,7 +320,7 @@ int transform_bitmap(const struct RGBQUAD *src, long width, long height,
320 return 1; 320 return 1;
321 } 321 }
322 322
323 *dest = (unsigned short *)malloc(dst_w * dst_h); 323 *dest = (unsigned short *)malloc(dst_w * dst_h * sizeof(short));
324 if (*dest == NULL) 324 if (*dest == NULL)
325 { 325 {
326 debugf("error - Out of memory.\n"); 326 debugf("error - Out of memory.\n");