summaryrefslogtreecommitdiff
path: root/gzwrite.c
diff options
context:
space:
mode:
Diffstat (limited to 'gzwrite.c')
-rw-r--r--gzwrite.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gzwrite.c b/gzwrite.c
index 26e89b6..5238133 100644
--- a/gzwrite.c
+++ b/gzwrite.c
@@ -349,9 +349,9 @@ int ZEXPORT gzputc(file, c)
349} 349}
350 350
351/* -- see zlib.h -- */ 351/* -- see zlib.h -- */
352int ZEXPORT gzputs(file, str) 352int ZEXPORT gzputs(file, s)
353 gzFile file; 353 gzFile file;
354 const char *str; 354 const char *s;
355{ 355{
356 z_size_t len, put; 356 z_size_t len, put;
357 gz_statep state; 357 gz_statep state;
@@ -366,12 +366,12 @@ int ZEXPORT gzputs(file, str)
366 return -1; 366 return -1;
367 367
368 /* write string */ 368 /* write string */
369 len = strlen(str); 369 len = strlen(s);
370 if ((int)len < 0 || (unsigned)len != len) { 370 if ((int)len < 0 || (unsigned)len != len) {
371 gz_error(state, Z_STREAM_ERROR, "string length does not fit in int"); 371 gz_error(state, Z_STREAM_ERROR, "string length does not fit in int");
372 return -1; 372 return -1;
373 } 373 }
374 put = gz_write(state, str, len); 374 put = gz_write(state, s, len);
375 return put < len ? -1 : (int)len; 375 return put < len ? -1 : (int)len;
376} 376}
377 377