summaryrefslogtreecommitdiff
blob: 4c21df4a7a2acd17b4cd37883ac25461db2570ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Index: libirman-0.4.2/chunk.c
===================================================================
--- libirman-0.4.2.orig/chunk.c
+++ libirman-0.4.2/chunk.c
@@ -122,7 +122,7 @@ void *ch_malloc(size_t numbytes, chunk_t
   
   ptr = ch->top;
   ch->free -= numbytes;
-  (char *)ch->top += numbytes;
+  ch->top = (char*)(ch->top) + numbytes;
 
   return ptr;
 }