aboutsummaryrefslogtreecommitdiff
path: root/gzwrite.c
diff options
context:
space:
mode:
Diffstat (limited to 'gzwrite.c')
-rw-r--r--gzwrite.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gzwrite.c b/gzwrite.c
index 2dcb3fc..18ade4a 100644
--- a/gzwrite.c
+++ b/gzwrite.c
@@ -185,7 +185,7 @@ int ZEXPORT gzwrite(file, buf, len)
185 /* since an int is returned, make sure len fits in one, otherwise return 185 /* since an int is returned, make sure len fits in one, otherwise return
186 with an error (this avoids the flaw in the interface) */ 186 with an error (this avoids the flaw in the interface) */
187 if ((int)len < 0) { 187 if ((int)len < 0) {
188 gz_error(state, Z_BUF_ERROR, "requested length does not fit in int"); 188 gz_error(state, Z_DATA_ERROR, "requested length does not fit in int");
189 return 0; 189 return 0;
190 } 190 }
191 191