diff options
author | 1997-07-23 10:12:43 +0000 | |
---|---|---|
committer | 1997-07-23 10:12:43 +0000 | |
commit | e21579c6318174c419518d94a0b13a9ae5202191 (patch) | |
tree | f07b2bf21598d12d22f2caed13a5a2bc14b280c2 | |
parent | Fix skeygetnext() (diff) | |
download | wireguard-openbsd-e21579c6318174c419518d94a0b13a9ae5202191.tar.xz wireguard-openbsd-e21579c6318174c419518d94a0b13a9ae5202191.zip |
1 byte oflow; Don.Lewis@tsc.tdk.com
-rw-r--r-- | usr.sbin/lpr/lpd/printjob.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/lpr/lpd/printjob.c b/usr.sbin/lpr/lpd/printjob.c index cae12d80bfb..a9b3441f642 100644 --- a/usr.sbin/lpr/lpd/printjob.c +++ b/usr.sbin/lpr/lpd/printjob.c @@ -1,4 +1,4 @@ -/* $OpenBSD: printjob.c,v 1.14 1997/07/21 05:24:12 deraadt Exp $ */ +/* $OpenBSD: printjob.c,v 1.15 1997/07/23 10:12:43 deraadt Exp $ */ /* $NetBSD: printjob.c,v 1.9.4.3 1996/07/12 22:31:39 jtc Exp $ */ /* @@ -1568,7 +1568,7 @@ pstatus(msg, va_alist) exit(1); } ftruncate(fd, 0); - (void)vsnprintf(buf, sizeof(buf), msg, ap); + (void)vsnprintf(buf, sizeof(buf) - 1, msg, ap); va_end(ap); strcat(buf, "\n"); (void) write(fd, buf, strlen(buf)); |