diff options
author | 1999-02-21 08:28:16 +0000 | |
---|---|---|
committer | 1999-02-21 08:28:16 +0000 | |
commit | 8194f438247153bfc09dd607c50d81501cc28fe5 (patch) | |
tree | 00a6a0a9f0f6e13b99b79eea17e8424601af87f1 /usr.bin/write/write.c | |
parent | NUL not NULL (diff) | |
download | wireguard-openbsd-8194f438247153bfc09dd607c50d81501cc28fe5.tar.xz wireguard-openbsd-8194f438247153bfc09dd607c50d81501cc28fe5.zip |
vis() buf overflow
Diffstat (limited to 'usr.bin/write/write.c')
-rw-r--r-- | usr.bin/write/write.c | 6 |
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; |