diff options
| author | admin <admin@optics-design.com> | 2025-11-29 13:04:57 +0100 |
|---|---|---|
| committer | admin <admin@optics-design.com> | 2025-11-29 13:04:57 +0100 |
| commit | c6bf301073e1bf0207064bcc5409d634c8e6d8fa (patch) | |
| tree | 145216beff9bad1ba7575583ce1483313f553bbb /src | |
| parent | cc05c02782d826336e3d06a27406f96e36c4cab0 (diff) | |
changed the size of header_line. This size should be enough for all reasonable cases
Diffstat (limited to 'src')
| -rw-r--r-- | src/tolsac.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/tolsac.c b/src/tolsac.c index 7707a01..7cb8a41 100644 --- a/src/tolsac.c +++ b/src/tolsac.c @@ -379,9 +379,19 @@ i32 main(i32 argc, char *argv[]) { fclose(readfile);
return 1;
}
+
+ // Read the header line
+ // char *header_line = NULL;
+ // size_t len = 0;
+ // ssize_t read = getline(&header_line, &len, readfile);
+ // if (read == -1) {
+ // printf("Error reading CSV header\n");
+ // fclose(readfile);
+ // return 1;
+ // }
// Read the header line
- char header_line[1024] = {0};
+ char header_line[1048576] = {0};
if (!fgets(header_line, sizeof(header_line), readfile)) {
printf("Error reading header line!\n");
fclose(readfile);
|