diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2015-07-22 18:06:31 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-07-22 11:21:59 -0700 |
commit | b98396e10fe86bed9dd05169e389d6aee8b92ec6 (patch) | |
tree | 407a1df51c101764a3f2400a433656da14f366cb /file.c | |
parent | c9a98a4f7b558ad2e7cbc52ebf2104480b6a5685 (diff) | |
download | subsurface-b98396e10fe86bed9dd05169e389d6aee8b92ec6.tar.gz |
Fix Seabear import if line ends with NL
We need to start second search from the start of the buffer if \r\n
search returns nothing.
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1000,6 +1000,7 @@ int parse_seabear_csv_file(const char *filename, int timef, int depthf, int temp } if (!ptr_old) { + ptr = mem.buffer; while ((ptr = strstr(ptr, "\n\n")) != NULL) { ptr_old = ptr; ptr += 1; |