Fixed of using backslash (\) in paths to cfg for training

pull/234/head
AlexeyAB 8 years ago
parent 548a0bc652
commit d1a5905c61
  1. 1
      src/utils.c

@ -126,6 +126,7 @@ char *basecfg(char *cfgfile)
{ {
c = next+1; c = next+1;
} }
if(!next) while ((next = strchr(c, '\\'))) { c = next + 1; }
c = copy_string(c); c = copy_string(c);
next = strchr(c, '.'); next = strchr(c, '.');
if (next) *next = 0; if (next) *next = 0;

Loading…
Cancel
Save