diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2005-11-30 09:06:43 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2005-11-30 09:06:43 +0000 |
commit | 36cca23c1884de8d1925dc7777600121b96de0b5 (patch) | |
tree | 35750739f0e375fcd491791c1c9a4239e349c0d2 /tools | |
parent | 6e46156f9257ac11dc0ff74a37b14a0b9ef7f033 (diff) | |
download | rockbox-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')
-rw-r--r-- | tools/bmp2rb.c | 2 |
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"); |