From 650bfbaefb8b5f5883059337948fad819db42d4a Mon Sep 17 00:00:00 2001 From: mdodd Date: Fri, 20 Aug 1999 07:14:46 +0000 Subject: [PATCH] Fix some cut and paste damage. Noticed by: Norman C. Rice --- usr.sbin/lpr/lpc/lpc.c | 4 ++-- usr.sbin/xntpd/xntpdc/ntpdc.c | 2 +- 2 files changed, 3 insertions(+), 3 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 @@ -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); diff --git a/usr.sbin/xntpd/xntpdc/ntpdc.c b/usr.sbin/xntpd/xntpdc/ntpdc.c index de4c342cff40..ad771e32696c 100644 --- a/usr.sbin/xntpd/xntpdc/ntpdc.c +++ b/usr.sbin/xntpd/xntpdc/ntpdc.c @@ -826,7 +826,7 @@ getcmds() 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(line, bp, len); line[len] = 0; history(hist, H_ENTER, bp);