X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=ossec-hids.git;a=blobdiff_plain;f=src%2Fexternal%2Fzlib-1.2.3%2Fgzio.c;h=3b016f6ac0c1c2d3fd0245c5ac23b71823f54738;hp=7a664fc65861fb2302fd051ac83634925a32a4b6;hb=6ef2f786c6c8ead94841b5f93baf9f43421f08c8;hpb=301048b51990573e58a30dc4a5bb4ec285cad554 diff --git a/src/external/zlib-1.2.3/gzio.c b/src/external/zlib-1.2.3/gzio.c index 7a664fc..3b016f6 100755 --- a/src/external/zlib-1.2.3/gzio.c +++ b/src/external/zlib-1.2.3/gzio.c @@ -5,7 +5,8 @@ * Compile this file with -DNO_GZCOMPRESS to avoid the compression code. */ -/* @(#) $Id$ */ +/* @(#) $Id: ./src/external/zlib-1.2.3/gzio.c, 2011/09/08 dcid Exp $ + */ #include @@ -126,7 +127,7 @@ local gzFile gz_open (path, mode, fd) s->transparent = 0; path_size = strlen(path) +1; - + s->path = (char*)ALLOC(path_size +1); if (s->path == NULL) { return destroy(s), (gzFile)Z_NULL; @@ -1010,7 +1011,7 @@ const char * ZEXPORT gzerror (file, errnum) TRYFREE(s->msg); msg_size = strlen(s->path) + strlen(m) + 4; - + s->msg = (char*)ALLOC(msg_size +1); if (s->msg == Z_NULL) return (const char*)ERR_MSG(Z_MEM_ERROR);