summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-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");