aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/lpr/lpc
diff options
context:
space:
mode:
authorMatthew N. Dodd <mdodd@FreeBSD.org>1999-08-20 07:14:46 +0000
committerMatthew N. Dodd <mdodd@FreeBSD.org>1999-08-20 07:14:46 +0000
commit061bab1a78ee9f8714fa460b5839aa806d4550cc (patch)
tree70f4d0a89ae414d636929a76d00a7e405030cc4e /usr.sbin/lpr/lpc
parent49b1e06a15c6e5b8db39762f2af692189b98e06c (diff)
downloadsrc-061bab1a78ee9f8714fa460b5839aa806d4550cc.tar.gz
src-061bab1a78ee9f8714fa460b5839aa806d4550cc.zip
Fix some cut and paste damage.
Noticed by: Norman C. Rice <nrice@emu.sourcee.com>
Notes
Notes: svn path=/head/; revision=50077
Diffstat (limited to 'usr.sbin/lpr/lpc')
-rw-r--r--usr.sbin/lpr/lpc/lpc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/lpr/lpc/lpc.c b/usr.sbin/lpr/lpc/lpc.c
index 2372211c2aaf..b3905f3042fb 100644
--- a/usr.sbin/lpr/lpc/lpc.c
+++ b/usr.sbin/lpr/lpc/lpc.c
@@ -43,7 +43,7 @@ static const char copyright[] =
static char sccsid[] = "@(#)lpc.c 8.3 (Berkeley) 4/28/95";
#endif
static const char rcsid[] =
- "$Id: lpc.c,v 1.10 1999/08/19 04:10:32 mdodd Exp $";
+ "$Id: lpc.c,v 1.11 1999/08/20 01:24:35 mdodd Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -171,7 +171,7 @@ cmdscanner()
if ((bp = el_gets(el, &num)) == NULL || num == 0)
return;
- len = (num > MAX_CMDLINE) ? MAX_CMDLINE : num);
+ len = (num > MAX_CMDLINE) ? MAX_CMDLINE : num;
memcpy(cmdline, bp, len);
cmdline[len] = 0;
history(hist, H_ENTER, bp);