history fix
Submitted by: ache (forwarded to Christos Zoulas where fix was agreed to)
This commit is contained in:
parent
959f4c6c47
commit
078e45bc3d
@ -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…
x
Reference in New Issue
Block a user