From ec0e2c51c6ef8714b193b810f8e3abb99e3882ca Mon Sep 17 00:00:00 2001 From: Alexis Nasr <alexis.nasr@lif.univ-mrs.fr> Date: Wed, 12 Apr 2017 12:01:55 +0200 Subject: [PATCH] fixed a bug in maca_common/src/word.c for a proper treatment of columns with _ character in mcd files --- maca_common/src/word.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/maca_common/src/word.c b/maca_common/src/word.c index b642093..e18a4b6 100644 --- a/maca_common/src/word.c +++ b/maca_common/src/word.c @@ -59,7 +59,8 @@ word *word_parse_buffer(char *buffer, mcd *mcd_struct) w = word_new(buffer); token = strtok(buffer, "\t"); 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); } if(mcd_struct->wf[col] == MCD_WF_FORM){ -- GitLab