summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gzlib.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gzlib.c b/gzlib.c
index a87d3d1..e142ffb 100644
--- a/gzlib.c
+++ b/gzlib.c
@@ -211,7 +211,7 @@ local gzFile gz_open(path, fd, mode)
211 else 211 else
212#endif 212#endif
213#if !defined(NO_snprintf) && !defined(NO_vsnprintf) 213#if !defined(NO_snprintf) && !defined(NO_vsnprintf)
214 snprintf(state->path, len + 1, "%s", (const char *)path); 214 (void)snprintf(state->path, len + 1, "%s", (const char *)path);
215#else 215#else
216 strcpy(state->path, path); 216 strcpy(state->path, path);
217#endif 217#endif
@@ -293,7 +293,7 @@ gzFile ZEXPORT gzdopen(fd, mode)
293 if (fd == -1 || (path = (char *)malloc(7 + 3 * sizeof(int))) == NULL) 293 if (fd == -1 || (path = (char *)malloc(7 + 3 * sizeof(int))) == NULL)
294 return NULL; 294 return NULL;
295#if !defined(NO_snprintf) && !defined(NO_vsnprintf) 295#if !defined(NO_snprintf) && !defined(NO_vsnprintf)
296 snprintf(path, 7 + 3 * sizeof(int), "<fd:%d>", fd); /* for debugging */ 296 (void)snprintf(path, 7 + 3 * sizeof(int), "<fd:%d>", fd);
297#else 297#else
298 sprintf(path, "<fd:%d>", fd); /* for debugging */ 298 sprintf(path, "<fd:%d>", fd); /* for debugging */
299#endif 299#endif
@@ -608,8 +608,8 @@ void ZLIB_INTERNAL gz_error(state, err, msg)
608 return; 608 return;
609 } 609 }
610#if !defined(NO_snprintf) && !defined(NO_vsnprintf) 610#if !defined(NO_snprintf) && !defined(NO_vsnprintf)
611 snprintf(state->msg, strlen(state->path) + strlen(msg) + 3, 611 (void)snprintf(state->msg, strlen(state->path) + strlen(msg) + 3,
612 "%s%s%s", state->path, ": ", msg); 612 "%s%s%s", state->path, ": ", msg);
613#else 613#else
614 strcpy(state->msg, state->path); 614 strcpy(state->msg, state->path);
615 strcat(state->msg, ": "); 615 strcat(state->msg, ": ");