summaryrefslogtreecommitdiff
path: root/ext/gd/libgd/wbmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/gd/libgd/wbmp.c')
-rw-r--r--ext/gd/libgd/wbmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/gd/libgd/wbmp.c b/ext/gd/libgd/wbmp.c
index fad3566922..d63c684ac7 100644
--- a/ext/gd/libgd/wbmp.c
+++ b/ext/gd/libgd/wbmp.c
@@ -116,7 +116,7 @@ createwbmp (int width, int height, int color)
if ((wbmp = (Wbmp *) gdMalloc (sizeof (Wbmp))) == NULL)
return (NULL);
- if ((wbmp->bitmap = (int *) gdMalloc (sizeof (int) * width * height)) == NULL)
+ if ((wbmp->bitmap = (int *) safe_emalloc(sizeof(int), width * height, 0)) == NULL)
{
gdFree (wbmp);
return (NULL);