summaryrefslogtreecommitdiff
path: root/otherlibs/graph/make_img.c
diff options
context:
space:
mode:
Diffstat (limited to 'otherlibs/graph/make_img.c')
-rw-r--r--otherlibs/graph/make_img.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/otherlibs/graph/make_img.c b/otherlibs/graph/make_img.c
index 56f37bd306..e65c7a00da 100644
--- a/otherlibs/graph/make_img.c
+++ b/otherlibs/graph/make_img.c
@@ -41,7 +41,7 @@ value caml_gr_make_image(value m)
ZPixmap, 0, NULL, width, height,
BitmapPad(caml_gr_display), 0);
- bdata = (char *) stat_alloc(height * idata->bytes_per_line);
+ bdata = (char *) caml_stat_alloc(height * idata->bytes_per_line);
idata->data = bdata;
has_transp = False;
@@ -61,7 +61,7 @@ value caml_gr_make_image(value m)
XCreateImage(caml_gr_display, DefaultVisual(caml_gr_display, caml_gr_screen),
1, ZPixmap, 0, NULL, width, height,
BitmapPad(caml_gr_display), 0);
- bmask = (char *) stat_alloc(height * imask->bytes_per_line);
+ bmask = (char *) caml_stat_alloc(height * imask->bytes_per_line);
imask->data = bmask;
for (i = 0; i < height; i++) {