Skip to content
Browse files

* mu_str_asciify_in_place: fix test to decide whether to replace

  • Loading branch information...
1 parent 3f6b3df commit 3edf950fc2a06a1229297fecd3acffdc0a5ef608 @djcb committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/mu-str.c
View
2 lib/mu-str.c
@@ -839,7 +839,7 @@ mu_str_asciify_in_place (char *buf)
g_return_val_if_fail (buf, NULL);
for (c = buf; c && *c; ++c) {
- if (!isascii(*c) || *c < ' ')
+ if (!isprint(*c) && !isspace (*c))
*c = '.';
}

0 comments on commit 3edf950

Please sign in to comment.
Something went wrong with that request. Please try again.