# HG changeset patch # User tuomov # Date 1036291895 -3600 # Node ID 4fdc7ea2bc387ab01ab6d91b3eac20e344c1805c # Parent 28628406763eb084619a9bc2e319d2e2b134ed5a trunk: changeset 45 (void*)+n fixed diff -r 28628406763e -r 4fdc7ea2bc38 misc.c --- 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;