summaryrefslogtreecommitdiff
path: root/csv.c
diff options
context:
space:
mode:
Diffstat (limited to 'csv.c')
-rw-r--r--csv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/csv.c b/csv.c
index 3c821414..d141f035 100644
--- a/csv.c
+++ b/csv.c
@@ -21,8 +21,8 @@ parse_csv_line(char * line, size_t max, size_t *n_columns, const char *columns[]
valid = strntoken(next, max, delims, &token, &state);
}
if (valid) {
- next += strlena(token) + 1;
- max -= strlena(token) + 1;
+ next += strlen(token) + 1;
+ max -= strlen(token) + 1;
columns[n] = token;
new_n = n + 1;
} else {