summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1996-08-06 17:47:15 +0000
committerderaadt <deraadt@openbsd.org>1996-08-06 17:47:15 +0000
commit8d53a7c53c151b7839b2d680f8194f26d3f1e0bf (patch)
treec951c204abdd68b195c783ee3ef7fe230d99050f
parentbuf oflow, from joshd (diff)
downloadwireguard-openbsd-8d53a7c53c151b7839b2d680f8194f26d3f1e0bf.tar.xz
wireguard-openbsd-8d53a7c53c151b7839b2d680f8194f26d3f1e0bf.zip
whoops
-rw-r--r--sbin/dump/optr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/dump/optr.c b/sbin/dump/optr.c
index ccf073580ad..3c0451d88c6 100644
--- a/sbin/dump/optr.c
+++ b/sbin/dump/optr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: optr.c,v 1.5 1996/08/05 11:51:16 deraadt Exp $ */
+/* $OpenBSD: optr.c,v 1.6 1996/08/06 17:47:15 deraadt Exp $ */
/* $NetBSD: optr.c,v 1.4 1996/05/18 16:16:17 jtk Exp $ */
/*-
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)optr.c 8.2 (Berkeley) 1/6/94";
#else
-static char rcsid[] = "$OpenBSD: optr.c,v 1.5 1996/08/05 11:51:16 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: optr.c,v 1.6 1996/08/06 17:47:15 deraadt Exp $";
#endif
#endif /* not lint */
@@ -275,7 +275,7 @@ sendmes(tty, message)
FILE *f_tty;
(void) strcpy(t, _PATH_DEV);
- (void) strncat(t, sizeof t, tty);
+ (void) strncat(t, tty, sizeof t);
if ((f_tty = fopen(t, "w")) != NULL) {
setbuf(f_tty, buf);