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:
parent
e129640141
commit
efa083c887
|
@ -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 = ' ';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue