summaryrefslogtreecommitdiffstats
path: root/contrib/tcsh/sh.hist.c
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2000-06-10 22:20:53 +0000
committerobrien <obrien@FreeBSD.org>2000-06-10 22:20:53 +0000
commit88bc1777b94746317563725d00d1cc291bbf9b0c (patch)
tree4d7dddd3207468aa59b04bfbc3e2da7e9ae904b0 /contrib/tcsh/sh.hist.c
parent87ba46f5589fc1e4024822d98ffd67cd03314085 (diff)
downloadFreeBSD-src-88bc1777b94746317563725d00d1cc291bbf9b0c.zip
FreeBSD-src-88bc1777b94746317563725d00d1cc291bbf9b0c.tar.gz
Offical fixes to allow longer lines in the history and tweak expand_lex()
useage.
Diffstat (limited to 'contrib/tcsh/sh.hist.c')
-rw-r--r--contrib/tcsh/sh.hist.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/tcsh/sh.hist.c b/contrib/tcsh/sh.hist.c
index a2889dd..639f5e9 100644
--- a/contrib/tcsh/sh.hist.c
+++ b/contrib/tcsh/sh.hist.c
@@ -1,4 +1,4 @@
-/* $Header: /src/pub/tcsh/sh.hist.c,v 3.26 1999/02/06 15:01:23 christos Exp $ */
+/* $Header: /src/pub/tcsh/sh.hist.c,v 3.27 2000/06/10 22:07:56 kim Exp $ */
/*
* sh.hist.c: Shell history expansions and substitutions
*/
@@ -36,7 +36,7 @@
*/
#include "sh.h"
-RCSID("$Id: sh.hist.c,v 3.26 1999/02/06 15:01:23 christos Exp $")
+RCSID("$Id: sh.hist.c,v 3.27 2000/06/10 22:07:56 kim Exp $")
#include "tc.h"
@@ -376,7 +376,7 @@ fmthist(fmt, ptr, buf, bufsiz)
else {
Char ibuf[INBUFSIZE], *ip;
char *p;
- (void) sprlex(ibuf, sizeof(ibuf), &hp->Hlex);
+ (void) sprlex(ibuf, sizeof(ibuf) / sizeof(Char), &hp->Hlex);
for (p = buf, ip = ibuf; (*p++ = (CHAR & *ip++)) != '\0'; )
continue;
}
OpenPOWER on IntegriCloud