From 1ac43653c055c440832211fd4562816d1f67fceb Mon Sep 17 00:00:00 2001 From: obrien Date: Tue, 2 May 2000 20:00:07 +0000 Subject: 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(-) (limited to 'contrib') diff --git a/contrib/tcsh/tc.prompt.c b/contrib/tcsh/tc.prompt.c index 2999923..c1a2da6 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': -- cgit v1.1