diff options
-rw-r--r-- | src/utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 = ' '; } } |