aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/ename/e-name-western.c
diff options
context:
space:
mode:
Diffstat (limited to 'e-util/ename/e-name-western.c')
-rw-r--r--e-util/ename/e-name-western.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/e-util/ename/e-name-western.c b/e-util/ename/e-name-western.c
index 698cceec0b..3848e7249b 100644
--- a/e-util/ename/e-name-western.c
+++ b/e-util/ename/e-name-western.c
@@ -164,7 +164,9 @@ e_name_western_get_one_prefix_at_str (char *str)
*/
word = e_name_western_get_words_at_idx (str, 0, 1);
- if (strlen (word) > 2 && isalpha (word [0]) && isalpha (word [1]) &&
+ if (strlen (word) > 2 &&
+ isalpha ((unsigned char) word [0]) &&
+ isalpha ((unsigned char) word [1]) &&
word [strlen (word) - 1] == '.')
return word;