(journal_entry): Add unsigned char cast to isprint() call.
(parse): Add unsigned char cast to isspace() call. Portability bug fix for WIN32.
This commit is contained in:
parent
c97d79c0ee
commit
856dcb7c5c
2 changed files with 3 additions and 3 deletions
|
@ -85,7 +85,7 @@ journal_entry(char *fmt, ...)
|
|||
va_end(ap);
|
||||
|
||||
for (i = n; buf[i]; ++i) {
|
||||
if (!isprint(buf[i]))
|
||||
if (!isprint((unsigned char)buf[i]))
|
||||
buf[i] = '?'; /* FIXME replace by escape */
|
||||
}
|
||||
buf[i++] = '\n';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue