diff options
Diffstat (limited to 'sbin/tunefs')
-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; } |