From 61a3af407aa1d48d6c96a0a4be92fc87603a996d Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sun, 21 Feb 1999 08:28:17 +0000 Subject: vis() buf overflow --- usr.bin/write/write.c | 6 +++--- 1 file 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 @@ -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; -- cgit v1.2.3