summaryrefslogtreecommitdiff
path: root/usr.bin/write
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1999-02-21 08:28:17 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1999-02-21 08:28:17 +0000
commit61a3af407aa1d48d6c96a0a4be92fc87603a996d (patch)
treeda2b09495d36e84cc9ac39d47fc95df72c754927 /usr.bin/write
parent426426376719de6ff6bf23d3d4e6c0dfa8fbd369 (diff)
vis() buf overflow
Diffstat (limited to 'usr.bin/write')
-rw-r--r--usr.bin/write/write.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/write/write.c b/usr.bin/write/write.c
index 8c9285a9329..e5357d0deb6 100644
--- a/usr.bin/write/write.c
+++ b/usr.bin/write/write.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: write.c,v 1.9 1998/07/06 18:35:20 deraadt Exp $ */
+/* $OpenBSD: write.c,v 1.10 1999/02/21 08:28:16 deraadt Exp $ */
/* $NetBSD: write.c,v 1.5 1995/08/31 21:48:32 jtc Exp $ */
/*
@@ -47,7 +47,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)write.c 8.2 (Berkeley) 4/27/95";
#endif
-static char *rcsid = "$OpenBSD: write.c,v 1.9 1998/07/06 18:35:20 deraadt Exp $";
+static char *rcsid = "$OpenBSD: write.c,v 1.10 1999/02/21 08:28:16 deraadt Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -300,7 +300,7 @@ wr_fputs(s)
register char *s;
{
register u_char c;
- char visout[4], *s2;
+ char visout[5], *s2;
#define PUTC(c) if (putchar(c) == EOF) goto err;