aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2002-11-23 11:30:38 +0800
committerChris Toshok <toshok@src.gnome.org>2002-11-23 11:30:38 +0800
commitf2dc09609b2ec8d8e749b7768b9f7599e21288ec (patch)
tree9adfa81e85b511740b38eac13cefcc7eb15dcffc /addressbook
parenteaa2814a05c8c3a094a00400cc5651e408ee9e18 (diff)
downloadgsoc2013-evolution-f2dc09609b2ec8d8e749b7768b9f7599e21288ec.tar
gsoc2013-evolution-f2dc09609b2ec8d8e749b7768b9f7599e21288ec.tar.gz
gsoc2013-evolution-f2dc09609b2ec8d8e749b7768b9f7599e21288ec.tar.bz2
gsoc2013-evolution-f2dc09609b2ec8d8e749b7768b9f7599e21288ec.tar.lz
gsoc2013-evolution-f2dc09609b2ec8d8e749b7768b9f7599e21288ec.tar.xz
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')
-rw-r--r--addressbook/ChangeLog7
-rw-r--r--addressbook/backend/ebook/evolution-vcard-importer.c4
2 files changed, 9 insertions, 2 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 3220bafa2c..09807f40f1 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,10 @@
+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.
+
2002-11-20 Chris Toshok <toshok@ximian.com>
* gui/component/addressbook-storage.h: roll forward the scope fix.
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);
}