diff options
author | Anil Madhavapeddy <avsm@cvs.openbsd.org> | 2003-04-05 10:42:55 +0000 |
---|---|---|
committer | Anil Madhavapeddy <avsm@cvs.openbsd.org> | 2003-04-05 10:42:55 +0000 |
commit | 1086e8e4c74a510f632910fccb44559d933a6287 (patch) | |
tree | c2dc23a0b04af13c78d9df9cd860cd2c53a4fb45 /usr.sbin | |
parent | 7f9c7285b36a0daa0e2c5149232bbebbdc579395 (diff) |
trivial strlcat, tedu@ ok
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/lpr/common_source/displayq.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/lpr/common_source/displayq.c b/usr.sbin/lpr/common_source/displayq.c index 4e7bf1edfba..97c6425314f 100644 --- a/usr.sbin/lpr/common_source/displayq.c +++ b/usr.sbin/lpr/common_source/displayq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: displayq.c,v 1.22 2002/06/09 21:58:46 millert Exp $ */ +/* $OpenBSD: displayq.c,v 1.23 2003/04/05 10:42:54 avsm Exp $ */ /* $NetBSD: displayq.c,v 1.21 2001/08/30 00:51:50 itojun Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static const char sccsid[] = "@(#)displayq.c 8.4 (Berkeley) 4/28/95"; #else -static const char rcsid[] = "$OpenBSD: displayq.c,v 1.22 2002/06/09 21:58:46 millert Exp $"; +static const char rcsid[] = "$OpenBSD: displayq.c,v 1.23 2003/04/05 10:42:54 avsm Exp $"; #endif #endif /* not lint */ @@ -271,7 +271,7 @@ displayq(int format) } } if (cp-line < sizeof(line) - 1) - strcat(line, "\n"); + strlcat(line, "\n", sizeof(line)); else line[sizeof(line) - 2] = '\n'; fd = getport(RM, 0); |