diff options
author | Michael Meeks <michael@helixcode.com> | 2000-10-27 05:20:51 +0800 |
---|---|---|
committer | Michael Meeks <mmeeks@src.gnome.org> | 2000-10-27 05:20:51 +0800 |
commit | 74c9e1118fdded8db3cf6e84478b2a23f1f13c0e (patch) | |
tree | 087a8eeaceaf2602de63b38b06b3b8190a3700a8 /e-util/ename/e-name-western.c | |
parent | 0a6f70d432d62ed09dcc3dda1eaa0fb9ed35065e (diff) | |
download | gsoc2013-evolution-74c9e1118fdded8db3cf6e84478b2a23f1f13c0e.tar gsoc2013-evolution-74c9e1118fdded8db3cf6e84478b2a23f1f13c0e.tar.gz gsoc2013-evolution-74c9e1118fdded8db3cf6e84478b2a23f1f13c0e.tar.bz2 gsoc2013-evolution-74c9e1118fdded8db3cf6e84478b2a23f1f13c0e.tar.lz gsoc2013-evolution-74c9e1118fdded8db3cf6e84478b2a23f1f13c0e.tar.xz gsoc2013-evolution-74c9e1118fdded8db3cf6e84478b2a23f1f13c0e.tar.zst gsoc2013-evolution-74c9e1118fdded8db3cf6e84478b2a23f1f13c0e.zip |
unsigned chars.
2000-10-26 Michael Meeks <michael@helixcode.com>
* ename/e-address-western.c (e_address_western_is_postal):
unsigned chars.
* ename/e-name-western.c (e_name_western_get_one_prefix_at_str):
cast to unsigned char.
svn path=/trunk/; revision=6212
Diffstat (limited to 'e-util/ename/e-name-western.c')
-rw-r--r-- | e-util/ename/e-name-western.c | 4 |
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; |