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 | |
| parent | 6e46156f9257ac11dc0ff74a37b14a0b9ef7f033 (diff) | |
| download | rockbox-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.c | 2 |
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"); |