Commit efa083c8 authored by Warren Dukes's avatar Warren Dukes

when stripping return chars, just replace them with spaces

git-svn-id: https://svn.musicpd.org/mpd/trunk@234 09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent e1296401
......@@ -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 = ' ';
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment