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=025bc546c4cde556d022cf4d325089207e1146c5;hb=6ef2f786c6c8ead94841b5f93baf9f43421f08c8;hpb=914feba5d54f979cd5d7e69c349c3d01f630042a diff --git a/src/external/zlib-1.2.3/gzio.c b/src/external/zlib-1.2.3/gzio.c index 025bc54..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: gzio.c,v 1.2 2006/08/09 00:42:42 dcid Exp $ */ +/* @(#) $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);