Merge branch 'master' of github.com:AlexeyAB/darknet

This commit is contained in:
AlexeyAB 2017-12-28 15:55:39 +03:00
commit 83d9b0b6d8
1 changed files with 1 additions and 0 deletions

View File

@ -286,6 +286,7 @@ char *fgetl(FILE *fp)
fgets(&line[curr], readsize, fp); fgets(&line[curr], readsize, fp);
curr = strlen(line); curr = strlen(line);
} }
if(line[curr-2] == '\r') line[curr-2] = '\0';
if(line[curr-1] == '\n') line[curr-1] = '\0'; if(line[curr-1] == '\n') line[curr-1] = '\0';
return line; return line;