From aeb15b3cb9157f5d0b2a9962e17de22560b8a1b2 Mon Sep 17 00:00:00 2001
From: AlexeyAB <alexeyab84@gmail.com>
Date: Sun, 07 Jan 2018 22:47:50 +0000
Subject: [PATCH] Detection and Tracking work well
---
src/utils.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/utils.c b/src/utils.c
index 05ad885..db6e0c6 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -126,6 +126,7 @@
{
c = next+1;
}
+ if(!next) while ((next = strchr(c, '\\'))) { c = next + 1; }
c = copy_string(c);
next = strchr(c, '.');
if (next) *next = 0;
@@ -285,6 +286,7 @@
fgets(&line[curr], readsize, fp);
curr = strlen(line);
}
+ if(line[curr-2] == '\r') line[curr-2] = '\0';
if(line[curr-1] == '\n') line[curr-1] = '\0';
return line;
--
Gitblit v1.10.0