diff options
author | Grigoriy Orlov <gluk@cvs.openbsd.org> | 2001-03-22 21:30:01 +0000 |
---|---|---|
committer | Grigoriy Orlov <gluk@cvs.openbsd.org> | 2001-03-22 21:30:01 +0000 |
commit | 4cb4e7d86f711cb01555489038179d81924ba794 (patch) | |
tree | 80c5fbf39dd78a1a4c206ab7a35707bd7e6af168 /sbin | |
parent | 81350d0e585e565da4e1881a136d907e51844538 (diff) |
sprintf -> snprintf
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/tunefs/tunefs.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sbin/tunefs/tunefs.c b/sbin/tunefs/tunefs.c index e75db7826ab..3a33a94ea25 100644 --- a/sbin/tunefs/tunefs.c +++ b/sbin/tunefs/tunefs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tunefs.c,v 1.8 1997/11/07 23:27:04 deraadt Exp $ */ +/* $OpenBSD: tunefs.c,v 1.9 2001/03/22 21:30:00 gluk Exp $ */ /* $NetBSD: tunefs.c,v 1.10 1995/03/18 15:01:31 cgd Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)tunefs.c 8.2 (Berkeley) 4/19/94"; #else -static char rcsid[] = "$OpenBSD: tunefs.c,v 1.8 1997/11/07 23:27:04 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: tunefs.c,v 1.9 2001/03/22 21:30:00 gluk Exp $"; #endif #endif /* not lint */ @@ -109,7 +109,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; } |