summaryrefslogtreecommitdiffstats
path: root/contrib/tcsh
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2000-05-02 20:00:07 +0000
committerobrien <obrien@FreeBSD.org>2000-05-02 20:00:07 +0000
commit1ac43653c055c440832211fd4562816d1f67fceb (patch)
treeb012e85373a7ce15aebee0abc68f9ad90dc068a8 /contrib/tcsh
parentcd1e9aaaab424960ff1f469c36ec65bf659e2adc (diff)
downloadFreeBSD-src-1ac43653c055c440832211fd4562816d1f67fceb.zip
FreeBSD-src-1ac43653c055c440832211fd4562816d1f67fceb.tar.gz
history fix
Submitted by: ache (forwarded to Christos Zoulas where fix was agreed to)
Diffstat (limited to 'contrib/tcsh')
-rw-r--r--contrib/tcsh/tc.prompt.c4
1 files changed, 2 insertions, 2 deletions
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':
OpenPOWER on IntegriCloud