diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2016-05-05 11:12:50 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-05-05 07:28:28 -0700 |
commit | b46839015572a11cdfe29c1df1eb6391ac479b56 (patch) | |
tree | eb8877ae4ac23bae1995f6309d2cbd230b55f7e2 /core/file.c | |
parent | 30976c05a42909c3ec2c15d4d627ab45602825e5 (diff) | |
download | subsurface-b46839015572a11cdfe29c1df1eb6391ac479b56.tar.gz |
NULL terminate the parameters array
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/file.c')
-rw-r--r-- | core/file.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/file.c b/core/file.c index 3e8041878..b5bf79c5a 100644 --- a/core/file.c +++ b/core/file.c @@ -956,6 +956,7 @@ int parse_csv_file(const char *filename, char **params, int pnr, const char *csv tmpbuf[7] = 0; params[pnr++] = "time"; params[pnr++] = strdup(tmpbuf); + params[pnr++] = NULL; } ptr = strstr(mem.buffer, "ZDP"); |