summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/join.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/join.c b/src/join.c
index 14a3b7a30..59d240f62 100644
--- a/src/join.c
+++ b/src/join.c
@@ -661,7 +661,7 @@ add_field_list (const char *c_str)
int file_index, field_index;
char *spec_item = p;
- p = strchr (p, ',');
+ p = strpbrk (p, ", \t");
if (p)
*p++ = 0;
invalid = decode_field_spec (spec_item, &file_index, &field_index);