diff options
Diffstat (limited to 'gzwrite.c')
-rw-r--r-- | gzwrite.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 | ||