projects
/
ossec-hids.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 2.7
[ossec-hids.git]
/
src
/
external
/
zlib-1.2.3
/
gzio.c
diff --git
a/src/external/zlib-1.2.3/gzio.c
b/src/external/zlib-1.2.3/gzio.c
index
7a664fc
..
3b016f6
100755
(executable)
--- 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.
*/
* 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 <stdio.h>
#include <stdio.h>
@@
-126,7
+127,7
@@
local gzFile gz_open (path, mode, fd)
s->transparent = 0;
path_size = strlen(path) +1;
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;
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;
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);
s->msg = (char*)ALLOC(msg_size +1);
if (s->msg == Z_NULL) return (const char*)ERR_MSG(Z_MEM_ERROR);