From 078e45bc3d534f10b552d23e25da63880bcfa478 Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Tue, 2 May 2000 20:00:07 +0000 Subject: [PATCH] history fix Submitted by: ache (forwarded to Christos Zoulas where fix was agreed to) --- contrib/tcsh/tc.prompt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/tcsh/tc.prompt.c b/contrib/tcsh/tc.prompt.c index 2999923a9fa..c1a2da6734c 100644 --- a/contrib/tcsh/tc.prompt.c +++ b/contrib/tcsh/tc.prompt.c @@ -222,7 +222,7 @@ tprintf(what, buf, fmt, siz, str, tim, info) fmthist('R', info, (char *) (cz = cbuff), sizeof(cbuff)); else cz = (unsigned char *) str; - if (str != NULL) + if (cz != NULL) for (; *cz; *p++ = attributes | *cz++) if (p >= ep) break; break; @@ -477,7 +477,7 @@ tprintf(what, buf, fmt, siz, str, tim, info) case 'w': if (p >= ep - 5) break; for (cz = (unsigned char *) month_list[t->tm_mon]; *cz; - *p++ = attributes | *cz++); + *p++ = attributes | *cz++) if (p >= ep) break; break; case 'W':