summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2000-11-26 11:04:45 +0000
committerkris <kris@FreeBSD.org>2000-11-26 11:04:45 +0000
commit0bec2472fdbc599d7de044c8672b653d89153217 (patch)
tree5af23bf6cd0aea54576523c06dd381f30632d86c /lib
parent2fd024181161524d18add9e4f56fcc9c036feb9b (diff)
downloadFreeBSD-src-0bec2472fdbc599d7de044c8672b653d89153217.zip
FreeBSD-src-0bec2472fdbc599d7de044c8672b653d89153217.tar.gz
sprintf -> snprintf
Diffstat (limited to 'lib')
-rw-r--r--lib/libz/gzio.c2
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);
}
OpenPOWER on IntegriCloud