summaryrefslogtreecommitdiffstats
path: root/usr.bin/window/startup.c
diff options
context:
space:
mode:
authorpvalchev <pvalchev@openbsd.org>2003-04-05 01:39:50 +0000
committerpvalchev <pvalchev@openbsd.org>2003-04-05 01:39:50 +0000
commit4513f5637642c048a8eb750613bc61b4bc7fb90c (patch)
treefc6270e0803e6d9ab73eab780e015330aec93df9 /usr.bin/window/startup.c
parentsome more string shit; krw ok (diff)
downloadwireguard-openbsd-4513f5637642c048a8eb750613bc61b4bc7fb90c.tar.xz
wireguard-openbsd-4513f5637642c048a8eb750613bc61b4bc7fb90c.zip
snprintf, strlcpy; ok deraadt tdeval tedu krw
Diffstat (limited to 'usr.bin/window/startup.c')
-rw-r--r--usr.bin/window/startup.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/window/startup.c b/usr.bin/window/startup.c
index 58906d4ba88..d4e752221e4 100644
--- a/usr.bin/window/startup.c
+++ b/usr.bin/window/startup.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: startup.c,v 1.6 2001/11/19 19:02:18 mpech Exp $ */
+/* $OpenBSD: startup.c,v 1.7 2003/04/05 01:39:50 pvalchev Exp $ */
/* $NetBSD: startup.c,v 1.4 1996/02/08 20:45:04 mycroft Exp $ */
/*
@@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)startup.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: startup.c,v 1.6 2001/11/19 19:02:18 mpech Exp $";
+static char rcsid[] = "$OpenBSD: startup.c,v 1.7 2003/04/05 01:39:50 pvalchev Exp $";
#endif
#endif /* not lint */
@@ -60,7 +60,7 @@ doconfig()
if ((home = getenv("HOME")) == NULL || *home == '\0')
return -1;
- (void) sprintf(buf, "%.*s/%s",
+ (void) snprintf(buf, sizeof(buf), "%.*s/%s",
(sizeof buf - sizeof runcom) / sizeof (char) - 1,
home, runcom);
return dosource(buf);