summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormongo <mongo@iomega>2016-04-13 22:35:17 -0300
committermongo <mongo@iomega>2016-04-13 22:35:17 -0300
commit62ec4eed2971da9ac1fd0264765ee885e0b7d62c (patch)
tree3e6b43b6e6567cd7eda41e5504a98a63aeaec11d
parente214ab227048d0a858417080aa49beaf76448e8c (diff)
Fix when importing CSV files
-rwxr-xr-xsrc.scim2/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src.scim2/file.c b/src.scim2/file.c
index 08edd99..2d23424 100755
--- a/src.scim2/file.c
+++ b/src.scim2/file.c
@@ -790,7 +790,7 @@ int import_csv(char * fname, char d) {
loading = 1;
// Check max length of line
- int max = max_length(f);
+ int max = max_length(f) + 1;
char line_in[max];
rewind(f);