diff --git a/parser/yaml_output_functions.c b/parser/yaml_output_functions.c index edf381e0ea..e748a82729 100644 --- a/parser/yaml_output_functions.c +++ b/parser/yaml_output_functions.c @@ -363,7 +363,7 @@ void write_yaml_from_struct_3 (char *yamlname, int asize, struct fmsyamloutkeys // trim any trailing whitespace int ws_ind = strlen(yamlname)-1; - while(isspace(*(yamlname+ws_ind))) ws_ind--; + while(*(yamlname+ws_ind) == ' ') ws_ind--; if( ws_ind != strlen(yamlname)-1) yamlname[ws_ind+1] = '\0'; /* open the yaml output file. Only 1 core should do this */