mirror of
https://github.com/djcb/mu.git
synced 2024-06-30 08:01:07 +02:00
* mu_str_asciify_in_place: fix test to decide whether to replace
This commit is contained in:
parent
3f6b3df477
commit
3edf950fc2
|
@ -839,7 +839,7 @@ mu_str_asciify_in_place (char *buf)
|
||||||
g_return_val_if_fail (buf, NULL);
|
g_return_val_if_fail (buf, NULL);
|
||||||
|
|
||||||
for (c = buf; c && *c; ++c) {
|
for (c = buf; c && *c; ++c) {
|
||||||
if (!isascii(*c) || *c < ' ')
|
if (!isprint(*c) && !isspace (*c))
|
||||||
*c = '.';
|
*c = '.';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user