diff options
author | kris <kris@FreeBSD.org> | 2000-11-26 11:04:45 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2000-11-26 11:04:45 +0000 |
commit | 0bec2472fdbc599d7de044c8672b653d89153217 (patch) | |
tree | 5af23bf6cd0aea54576523c06dd381f30632d86c /lib | |
parent | 2fd024181161524d18add9e4f56fcc9c036feb9b (diff) | |
download | FreeBSD-src-0bec2472fdbc599d7de044c8672b653d89153217.zip FreeBSD-src-0bec2472fdbc599d7de044c8672b653d89153217.tar.gz |
sprintf -> snprintf
Diffstat (limited to 'lib')
-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); } |