From efa083c887c9f82c224afb007cecaac678af63e3 Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Tue, 9 Mar 2004 22:50:52 +0000 Subject: when stripping return chars, just replace them with spaces git-svn-id: https://svn.musicpd.org/mpd/trunk@234 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 = ' '; } } -- cgit v1.2.3