summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1997-02-15 21:38:27 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1997-02-15 21:38:27 +0000
commitd5eda4dec1f6b03f5fd5e5d2aff7a5cf95d040bf (patch)
treeced2276763beb35709e6d54310a1eb836ce045ef
parent34a5a573a82135489e7fe007d17bfd186266f922 (diff)
SAVE_MEMORY even more
-rw-r--r--sys/lib/libsa/cread.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/lib/libsa/cread.c b/sys/lib/libsa/cread.c
index 93e9204f413..66870baf644 100644
--- a/sys/lib/libsa/cread.c
+++ b/sys/lib/libsa/cread.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cread.c,v 1.4 1997/02/06 22:57:03 downsj Exp $ */
+/* $OpenBSD: cread.c,v 1.5 1997/02/15 21:38:26 mickey Exp $ */
/* $NetBSD: cread.c,v 1.2 1997/02/04 18:38:20 thorpej Exp $ */
/*
@@ -196,7 +196,11 @@ open(fname, mode)
if(!s) goto errout;
bzero(s, sizeof(struct sd));
+#ifdef SAVE_MEMORY
+ if(inflateInit2(&(s->stream), -11) != Z_OK)
+#else
if(inflateInit2(&(s->stream), -15) != Z_OK)
+#endif
goto errout;
s->stream.next_in = s->inbuf = (unsigned char*)alloc(Z_BUFSIZE);