From b98396e10fe86bed9dd05169e389d6aee8b92ec6 Mon Sep 17 00:00:00 2001 From: Miika Turkia Date: Wed, 22 Jul 2015 18:06:31 +0300 Subject: [PATCH] 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 Signed-off-by: Dirk Hohndel --- file.c | 1 + 1 file changed, 1 insertion(+) diff --git a/file.c b/file.c index c955e9ca9..5772fc882 100644 --- a/file.c +++ b/file.c @@ -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;