mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
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:
parent
c9a98a4f7b
commit
b98396e10f
1 changed files with 1 additions and 0 deletions
1
file.c
1
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;
|
||||
|
|
Loading…
Add table
Reference in a new issue