mirror of https://github.com/AlexeyAB/darknet.git
Merge branch 'master' of github.com:AlexeyAB/darknet
This commit is contained in:
commit
83d9b0b6d8
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue