aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2000-05-02 20:00:07 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2000-05-02 20:00:07 +0000
commit078e45bc3d534f10b552d23e25da63880bcfa478 (patch)
treeb012e85373a7ce15aebee0abc68f9ad90dc068a8
parent959f4c6c47219db2985d7f094a4939407e1386a4 (diff)
downloadsrc-078e45bc3d534f10b552d23e25da63880bcfa478.tar.gz
src-078e45bc3d534f10b552d23e25da63880bcfa478.zip
history fix
Submitted by: ache (forwarded to Christos Zoulas where fix was agreed to)
Notes
Notes: svn path=/vendor/tcsh/dist/; revision=59901
-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 2999923a9fab..c1a2da6734c8 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':