Fix some cut and paste damage.

Noticed by: Norman C. Rice <nrice@emu.sourcee.com>
This commit is contained in:
Matthew N. Dodd 1999-08-20 07:14:46 +00:00
parent 49b1e06a15
commit 061bab1a78
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=50077
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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);