summaryrefslogtreecommitdiff
path: root/sysutils/libirman/patches/patch-af
blob: de15573b90fd7d818b7e942b4f4eac38296849b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-af,v 1.1 2006/08/19 22:52:23 abs Exp $

--- chunk.c.orig	1999-02-18 11:14:59.000000000 +0000
+++ 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;
 }