diff options
author | 2003-04-05 01:39:50 +0000 | |
---|---|---|
committer | 2003-04-05 01:39:50 +0000 | |
commit | 4513f5637642c048a8eb750613bc61b4bc7fb90c (patch) | |
tree | fc6270e0803e6d9ab73eab780e015330aec93df9 /usr.bin/window/string.c | |
parent | some more string shit; krw ok (diff) | |
download | wireguard-openbsd-4513f5637642c048a8eb750613bc61b4bc7fb90c.tar.xz wireguard-openbsd-4513f5637642c048a8eb750613bc61b4bc7fb90c.zip |
snprintf, strlcpy; ok deraadt tdeval tedu krw
Diffstat (limited to 'usr.bin/window/string.c')
-rw-r--r-- | usr.bin/window/string.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/window/string.c b/usr.bin/window/string.c index c70fede0ce8..46bf81a3643 100644 --- a/usr.bin/window/string.c +++ b/usr.bin/window/string.c @@ -1,4 +1,4 @@ -/* $OpenBSD: string.c,v 1.5 2001/11/19 19:02:18 mpech Exp $ */ +/* $OpenBSD: string.c,v 1.6 2003/04/05 01:39:50 pvalchev Exp $ */ /* $NetBSD: string.c,v 1.5 1995/09/29 00:44:06 cgd Exp $ */ /* @@ -41,7 +41,7 @@ #if 0 static char sccsid[] = "@(#)string.c 8.1 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$OpenBSD: string.c,v 1.5 2001/11/19 19:02:18 mpech Exp $"; +static char rcsid[] = "$OpenBSD: string.c,v 1.6 2003/04/05 01:39:50 pvalchev Exp $"; #endif #endif /* not lint */ @@ -90,7 +90,7 @@ int i; { char buf[30]; - (void) sprintf(buf, "%d", i); + (void) snprintf(buf, sizeof(buf), "%d", i); return str_cpy(buf); } |