diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-07-23 10:12:44 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-07-23 10:12:44 +0000 |
commit | 1ba68855aa5ba7d56f3a0ca122460539ba6cebcd (patch) | |
tree | a1c0698fb8b8380f43257a81cf585df07ab8dd4d | |
parent | c77edfabaa6567183f3a149ecea9bd6f69934580 (diff) |
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)); |