helly           Tue Nov 12 11:02:04 2002 EDT

  Modified files:              
    /php4/ext/gd/libgd  gdhelpers.c 
  Log:
  use *e*malloc functions
  
  
Index: php4/ext/gd/libgd/gdhelpers.c
diff -u php4/ext/gd/libgd/gdhelpers.c:1.2 php4/ext/gd/libgd/gdhelpers.c:1.3
--- php4/ext/gd/libgd/gdhelpers.c:1.2   Sun Aug 11 09:50:27 2002
+++ php4/ext/gd/libgd/gdhelpers.c       Tue Nov 12 11:02:03 2002
@@ -1,3 +1,9 @@
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include "php.h"
+
 #include "gd.h"
 #include "gdhelpers.h"
 #include <stdlib.h>
@@ -74,23 +80,23 @@
 void *
 gdCalloc (size_t nmemb, size_t size)
 {
-  return calloc (nmemb, size);
+  return ecalloc (nmemb, size);
 }
 
 void *
 gdMalloc (size_t size)
 {
-  return malloc (size);
+  return emalloc (size);
 }
 
 void *
 gdRealloc (void *ptr, size_t size)
 {
-  return realloc (ptr, size);
+  return erealloc (ptr, size);
 }
 
 void
 gdFree (void *ptr)
 {
-  free (ptr);
+  efree (ptr);
 }



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to