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>
This commit is contained in:
Miika Turkia 2015-07-22 18:06:31 +03:00 committed by Dirk Hohndel
parent c9a98a4f7b
commit b98396e10f

1
file.c
View file

@ -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;