mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-27 16:39:08 +00:00
history fix
Submitted by: ache (forwarded to Christos Zoulas where fix was agreed to)
This commit is contained in:
parent
959f4c6c47
commit
078e45bc3d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/vendor/tcsh/dist/; revision=59901
@ -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':
|
||||
|
Loading…
Reference in New Issue
Block a user