misc.c

changeset 42
4fdc7ea2bc38
parent 41
28628406763e
child 53
f8f9366b359c
--- a/misc.c	Sun Nov 03 03:09:04 2002 +0100
+++ b/misc.c	Sun Nov 03 03:51:35 2002 +0100
@@ -34,7 +34,7 @@
 			return NULL;
 	
 		if(newsize>oldsize)
-			memset(p+oldsize, 0, newsize-oldsize);
+			memset((char*)p+oldsize, 0, newsize-oldsize);
 	}
 
 	return p;

mercurial