diff options
Diffstat (limited to 'lib/libz')
-rw-r--r-- | lib/libz/gzio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libz/gzio.c b/lib/libz/gzio.c index 8c5d521..8e79400 100644 --- a/lib/libz/gzio.c +++ b/lib/libz/gzio.c @@ -198,7 +198,7 @@ gzFile ZEXPORT gzdopen (fd, mode) char name[20]; if (fd < 0) return (gzFile)Z_NULL; - sprintf(name, "<fd:%d>", fd); /* for debugging */ + snprintf(name, sizeof(name), "<fd:%d>", fd); /* for debugging */ return gz_open (name, mode, fd); } |