Skip to content
Snippets Groups Projects
Commit ec0e2c51 authored by Alexis Nasr's avatar Alexis Nasr
Browse files

fixed a bug in maca_common/src/word.c for a proper treatment of columns with _...

fixed a bug in maca_common/src/word.c for a proper treatment of columns with _ character in mcd files
parent c1b334fd
No related branches found
No related tags found
No related merge requests found
...@@ -59,7 +59,8 @@ word *word_parse_buffer(char *buffer, mcd *mcd_struct) ...@@ -59,7 +59,8 @@ word *word_parse_buffer(char *buffer, mcd *mcd_struct)
w = word_new(buffer); w = word_new(buffer);
token = strtok(buffer, "\t"); token = strtok(buffer, "\t");
do{ do{
if((col < mcd_struct->nb_col) && (mcd_struct->wf[col] != -1) && (strcmp(token, "_"))){ /* if((col < mcd_struct->nb_col) && (mcd_struct->wf[col] != -1) && (strcmp(token, "_"))){ */
if((col < mcd_struct->nb_col) && (mcd_struct->wf[col] != -1)){
w->wf_array[mcd_struct->wf[col]] = mcd_get_code(mcd_struct, token, col); w->wf_array[mcd_struct->wf[col]] = mcd_get_code(mcd_struct, token, col);
} }
if(mcd_struct->wf[col] == MCD_WF_FORM){ if(mcd_struct->wf[col] == MCD_WF_FORM){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment