git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
only create a unicode2glyph table if explicitly requested
[swftools.git]
/
lib
/
mem.c
diff --git
a/lib/mem.c
b/lib/mem.c
index
8e619dc
..
6dd58f5
100644
(file)
--- a/
lib/mem.c
+++ b/
lib/mem.c
@@
-66,7
+66,7
@@
void* rfx_calloc(int size)
return 0;
}
#ifdef HAVE_CALLOC
return 0;
}
#ifdef HAVE_CALLOC
- ptr = calloc(size);
+ ptr = calloc(1, size);
#else
ptr = malloc(size);
#endif
#else
ptr = malloc(size);
#endif
@@
-80,6
+80,12
@@
void* rfx_calloc(int size)
#endif
return ptr;
}
#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()
#ifdef MEMORY_INFO
long rfx_memory_used()