aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-03-09 22:50:52 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-03-09 22:50:52 +0000
commitefa083c887c9f82c224afb007cecaac678af63e3 (patch)
treef8e95fc49d7d77509ef32e05692b28a5cbd2817e
parente1296401410a80bf564c13a592db0a4b20d732e0 (diff)
downloadmpd-efa083c887c9f82c224afb007cecaac678af63e3.tar.gz
mpd-efa083c887c9f82c224afb007cecaac678af63e3.tar.xz
mpd-efa083c887c9f82c224afb007cecaac678af63e3.zip
when stripping return chars, just replace them with spaces
git-svn-id: https://svn.musicpd.org/mpd/trunk@234 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/utils.c4
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 = ' ';
}
}