Fix another bug -- I wasn't sizing the header properly

in `realloc()`
This commit is contained in:
david parsons
2008-04-03 11:42:27 -07:00
parent 44376ed97c
commit 4cd2ad9dcb
+1 -1
View File
@@ -67,7 +67,7 @@ arealloc(void *ptr, int size)
if ( p2->magic == MAGIC ) {
save.next = p2->next;
save.last = p2->last;
p2 = realloc(p2, sizeof(p2) + size);
p2 = realloc(p2, sizeof(*p2) + size);
if ( p2 ) {
p2->size = size;