diff options
author | kris <kris@FreeBSD.org> | 2001-07-24 11:40:18 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2001-07-24 11:40:18 +0000 |
commit | dfb5f5d5892585bd43bea7a627c21456e0ff9687 (patch) | |
tree | 92d795c8f126e2f11a9fc156d2cffbf75dc3e09f /sbin | |
parent | 1e628e76e17a6355b1ae95be0a26bbd8b25dbf7c (diff) | |
download | FreeBSD-src-dfb5f5d5892585bd43bea7a627c21456e0ff9687.zip FreeBSD-src-dfb5f5d5892585bd43bea7a627c21456e0ff9687.tar.gz |
sprintf -> snprintf
Obtained from: OpenBSD
MFC After: 1 week
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/tunefs/tunefs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/tunefs/tunefs.c b/sbin/tunefs/tunefs.c index 9cab127..80f08e0e 100644 --- a/sbin/tunefs/tunefs.c +++ b/sbin/tunefs/tunefs.c @@ -210,7 +210,8 @@ again: if (*special != '/') { if (*special == 'r') special++; - (void)sprintf(device, "%s/%s", _PATH_DEV, special); + (void)snprintf(device, sizeof(device), "%s/%s", + _PATH_DEV, special); special = device; goto again; } |