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

Corrected a bug where we tried to read more columns than mcd had

parent 44e9cd7d
No related branches found
No related tags found
No related merge requests found
......@@ -74,7 +74,7 @@ word *word_parse_buffer(char *buffer, mcd *mcd_struct)
w->U1 = isupper(token[0]) ? 1 : 0;
}
col++;
} while((token = strtok(NULL , "\t")));
} while((token = strtok(NULL , "\t")) && col < mcd_struct->nb_col);
return w;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment