changeset 5 | c87681fff7d3 |
parent 2 | 57a1fcb0c75c |
--- a/fastmalloc.c Sat Aug 11 16:12:27 2007 +0200 +++ b/fastmalloc.c Mon Aug 13 16:27:41 2007 +0200 @@ -13,8 +13,7 @@ void * fastmalloc(int newsize) { void *outptr; - - outptr = base + given; + int old_given = given; given += newsize; @@ -32,5 +31,7 @@ } } + outptr = base + old_given; + return outptr; }