diff options
author | Chris Toshok <toshok@ximian.com> | 2002-11-23 11:30:38 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2002-11-23 11:30:38 +0800 |
commit | f2dc09609b2ec8d8e749b7768b9f7599e21288ec (patch) | |
tree | 9adfa81e85b511740b38eac13cefcc7eb15dcffc /addressbook/backend/ebook | |
parent | eaa2814a05c8c3a094a00400cc5651e408ee9e18 (diff) | |
download | gsoc2013-evolution-f2dc09609b2ec8d8e749b7768b9f7599e21288ec.tar.gz gsoc2013-evolution-f2dc09609b2ec8d8e749b7768b9f7599e21288ec.tar.zst gsoc2013-evolution-f2dc09609b2ec8d8e749b7768b9f7599e21288ec.zip |
[ rolling forward fix for #34254 from 1.2 branch ] use g-ascii_strncasecmp
2002-11-22 Chris Toshok <toshok@ximian.com>
[ rolling forward fix for #34254 from 1.2 branch ]
* backend/ebook/evolution-vcard-importer.c (check_file_is_vcard):
use g-ascii_strncasecmp instead of strncmp.
(support_format_fn): use g_ascii_strcasecmp instead of strcmp.
svn path=/trunk/; revision=18896
Diffstat (limited to 'addressbook/backend/ebook')
-rw-r--r-- | addressbook/backend/ebook/evolution-vcard-importer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addressbook/backend/ebook/evolution-vcard-importer.c b/addressbook/backend/ebook/evolution-vcard-importer.c index b60691f87c..f221ae4a64 100644 --- a/addressbook/backend/ebook/evolution-vcard-importer.c +++ b/addressbook/backend/ebook/evolution-vcard-importer.c @@ -149,7 +149,7 @@ check_file_is_vcard (const char *filename) return FALSE; } - if (strncmp (line, "BEGIN:VCARD", 11) == 0) { + if (g_ascii_strncasecmp (line, "BEGIN:VCARD", 11) == 0) { result = TRUE; } else { result = FALSE; @@ -172,7 +172,7 @@ support_format_fn (EvolutionImporter *importer, return check_file_is_vcard (filename); } for (i = 0; supported_extensions[i] != NULL; i++) { - if (strcmp (supported_extensions[i], ext) == 0) + if (g_ascii_strcmp (supported_extensions[i], ext) == 0) return check_file_is_vcard (filename); } |