From 115f517f77b06e0cc6ff1bfced6d3749530b008f Mon Sep 17 00:00:00 2001
From: Guido van Rossum <guido@python.org>
Date: Thu, 23 Apr 1998 20:22:11 +0000
Subject: Tiny patch for zlib 1.1.2

---
 Modules/zlibmodule.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Modules/zlibmodule.c b/Modules/zlibmodule.c
index 1f99646..93bb99f 100644
--- a/Modules/zlibmodule.c
+++ b/Modules/zlibmodule.c
@@ -217,6 +217,7 @@ PyZlib_decompress(self, args)
         {
         case(Z_STREAM_END):
 	    break;
+	case(Z_BUF_ERROR):
         case(Z_OK):
 	    /* need more memory */
 	    if (_PyString_Resize(&result_str, r_strlen << 1) == -1)
-- 
cgit v0.12

