aboutsummaryrefslogtreecommitdiff
path: root/src/importcsv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/importcsv.c')
-rw-r--r--src/importcsv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/importcsv.c b/src/importcsv.c
index b9884737..b93f6928 100644
--- a/src/importcsv.c
+++ b/src/importcsv.c
@@ -207,7 +207,7 @@ static gboolean imp_csv_load_fields( gchar *sFile ) {
str = g_strdup(buf);
else
str = conv_localetodisp(buf, NULL);
- strv = g_strsplit(str, ",", 0);
+ strv = strsplit_csv(str, ',', 0);
fields_len = sizeof(imp_csv_attrib) / sizeof(imp_csv_attrib[0]);
while (strv[data_len])
++data_len;
@@ -381,7 +381,7 @@ static gint imp_csv_import_data( gchar *csvFile, AddressCache *cache ) {
str = g_strdup(buf);
else
str = conv_localetodisp(buf, NULL);
- strv = g_strsplit(str, ",", 0);
+ strv = strsplit_csv(str, ',', 0);
while (strv[cols])
++cols;