when stripping return chars, just replace them with spaces

git-svn-id: https://svn.musicpd.org/mpd/trunk@234 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Warren Dukes 2004-03-09 22:50:52 +00:00
parent e129640141
commit efa083c887
1 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ char * strDupToUpper(char * str) {
} }
void stripReturnChar(char * string) { void stripReturnChar(char * string) {
if(string && (string = strstr(string,"\n"))) { while(string && (string = strstr(string,"\n"))) {
*string = '\0'; *string = ' ';
} }
} }