return 0;
}
#ifdef HAVE_CALLOC
- ptr = calloc(size);
+ ptr = calloc(1, size);
#else
ptr = malloc(size);
#endif
#endif
return ptr;
}
+#ifndef HAVE_CALLOC
+void* rfx_calloc_replacement(int nmemb, int size)
+{
+ rfx_calloc(nmemb*size);
+}
+#endif
#ifdef MEMORY_INFO
long rfx_memory_used()