summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2015-07-22 18:06:31 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-22 11:21:59 -0700
commitb98396e10fe86bed9dd05169e389d6aee8b92ec6 (patch)
tree407a1df51c101764a3f2400a433656da14f366cb
parentc9a98a4f7b558ad2e7cbc52ebf2104480b6a5685 (diff)
downloadsubsurface-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>
-rw-r--r--file.c1
1 files changed, 1 insertions, 0 deletions
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;