Skip to content
Snippets Groups Projects
Commit 785245e8 authored by Franck Dary's avatar Franck Dary
Browse files

corrected a bug where a feature could be ignored

parent 823b0f9d
No related branches found
No related tags found
No related merge requests found
......@@ -95,6 +95,9 @@ feat_model *feat_model_read(char *filename, feat_lib *fl, int verbose)
fm->fl = fl;
while(fgets(buffer, 1000, f)){
int len = strlen(buffer);
buffer[len] = '\n';
buffer[len+1] = '\0';
if(feof(f)) break;
if((buffer[0] == '\n') || (buffer[0] == '#')) continue;
if(verbose) fprintf(stderr, "%d", feature_number + 1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment