diff options
author | Dan Winship <danw@src.gnome.org> | 2001-04-12 05:39:37 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2001-04-12 05:39:37 +0800 |
commit | c1a395bcc2ecbaaba3597fd3144b47fbb3a64578 (patch) | |
tree | f6163431353af1175e37109fa22169bfd3960454 /camel/providers | |
parent | e6ef1f1539d4542e2d66ebdef424ad1eb0fca698 (diff) | |
download | gsoc2013-evolution-c1a395bcc2ecbaaba3597fd3144b47fbb3a64578.tar gsoc2013-evolution-c1a395bcc2ecbaaba3597fd3144b47fbb3a64578.tar.gz gsoc2013-evolution-c1a395bcc2ecbaaba3597fd3144b47fbb3a64578.tar.bz2 gsoc2013-evolution-c1a395bcc2ecbaaba3597fd3144b47fbb3a64578.tar.lz gsoc2013-evolution-c1a395bcc2ecbaaba3597fd3144b47fbb3a64578.tar.xz gsoc2013-evolution-c1a395bcc2ecbaaba3597fd3144b47fbb3a64578.tar.zst gsoc2013-evolution-c1a395bcc2ecbaaba3597fd3144b47fbb3a64578.zip |
Simplify peterw's imap_is_atom_char fix.
* providers/imap/camel-imap-utils.c (imap_parse_string_generic):
Simplify peterw's imap_is_atom_char fix.
svn path=/trunk/; revision=9250
Diffstat (limited to 'camel/providers')
-rw-r--r-- | camel/providers/imap/camel-imap-utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/camel/providers/imap/camel-imap-utils.c b/camel/providers/imap/camel-imap-utils.c index e7c0a050ca..acbfe46b23 100644 --- a/camel/providers/imap/camel-imap-utils.c +++ b/camel/providers/imap/camel-imap-utils.c @@ -201,7 +201,7 @@ static char imap_atom_specials[128] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, }; -#define imap_is_atom_char(ch) (isascii (ch) && !imap_atom_specials[ch]) +#define imap_is_atom_char(ch) (isprint (ch) && !imap_atom_specials[ch]) /** * imap_parse_string_generic: @@ -275,7 +275,7 @@ imap_parse_string_generic (char **str_p, int *len, int type) return NULL; } else if (type == IMAP_ASTRING && imap_is_atom_char ((unsigned char)*str)) { - while (imap_is_atom_char ((unsigned char)*str) && *str != '\0') + while (imap_is_atom_char ((unsigned char)*str)) str++; *len = str - *str_p; |