X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Frealloc.c;h=6d6b0baf2304b933602f33db7e24cd2ff7a6b033;hb=36689e3146ae5c7aca4112b9da88112c7bc85755;hp=536f61f9acce4714b53e9a43e6222b6e35ac67d0;hpb=738aa2a6c2e769f96d49ccde48bd0e10dd41eb90;p=libucw.git diff --git a/lib/realloc.c b/lib/realloc.c index 536f61f9..6d6b0baf 100644 --- a/lib/realloc.c +++ b/lib/realloc.c @@ -1,5 +1,5 @@ /* - * Sherlock Library -- Memory Re-allocation + * UCW Library -- Memory Re-allocation * * (c) 1997 Martin Mares * @@ -16,6 +16,7 @@ void * xrealloc(void *old, uns size) { + /* We assume that realloc(NULL, x) works like malloc(x), which is true with the glibc. */ void *x = realloc(old, size); if (!x) die("Cannot reallocate %d bytes of memory", size);