summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
Diffstat (limited to 'generic')
-rw-r--r--generic/tclZlib.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/generic/tclZlib.c b/generic/tclZlib.c
index ab38696..75aea90 100644
--- a/generic/tclZlib.c
+++ b/generic/tclZlib.c
@@ -13,7 +13,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclZlib.c,v 1.7 2008/12/12 16:18:09 dkf Exp $
+ * RCS: @(#) $Id: tclZlib.c,v 1.8 2008/12/12 21:43:35 nijtmans Exp $
*/
#include "tclInt.h"
@@ -1090,7 +1090,7 @@ Tcl_ZlibDeflate(
* byte of string that we add. Note that over-allocation is not a
* problem. [Bug 2419061]
*/
-
+
extraSize = 32;
if (gzipHeaderDictObj) {
headerPtr = &header;
@@ -1245,9 +1245,9 @@ Tcl_ZlibInflate(
if (gzipHeaderDictObj) {
headerPtr = &header;
memset(headerPtr, 0, sizeof(gz_header));
- nameBuf = ckalloc(PATH_MAX);
+ nameBuf = ckalloc(MAXPATHLEN);
header.name = (void *) nameBuf;
- header.name_max = PATH_MAX;
+ header.name_max = MAXPATHLEN;
commentBuf = ckalloc(256);
header.comment = (void *) commentBuf;
header.comm_max = 256;
@@ -1286,7 +1286,7 @@ Tcl_ZlibInflate(
goto error;
}
if (headerPtr) {
- inflateGetHeader(&stream, headerPtr);
+ e = inflateGetHeader(&stream, headerPtr);
if (e != Z_OK) {
goto error;
}