diff --git a/src/utils.c b/src/utils.c index d5f6c90c2..63c57de26 100644 --- a/src/utils.c +++ b/src/utils.c @@ -39,7 +39,7 @@ char * strDupToUpper(char * str) { } void stripReturnChar(char * string) { - if(string && (string = strstr(string,"\n"))) { - *string = '\0'; + while(string && (string = strstr(string,"\n"))) { + *string = ' '; } }