From d1a5905c61c12c86e4bf9e2b1174d00d8a16fb6e Mon Sep 17 00:00:00 2001 From: AlexeyAB Date: Sun, 1 Oct 2017 18:21:27 +0300 Subject: [PATCH] Fixed of using backslash (\) in paths to cfg for training --- src/utils.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils.c b/src/utils.c index 05ad885f..f340a7e0 100644 --- a/src/utils.c +++ b/src/utils.c @@ -126,6 +126,7 @@ char *basecfg(char *cfgfile) { c = next+1; } + if(!next) while ((next = strchr(c, '\\'))) { c = next + 1; } c = copy_string(c); next = strchr(c, '.'); if (next) *next = 0;