aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-03-09 20:55:51 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-03-09 20:55:51 +0000
commit6599e05a25bd2e653c2daf8abbe0e141b75bf4ac (patch)
tree56b36de7e6e52d32fa244c52477bc0bf1eea1b7c /src/utils.c
parentff1659ed4c37a4f760ac02d4c592c48ef42ef9db (diff)
downloadmpd-6599e05a25bd2e653c2daf8abbe0e141b75bf4ac.tar.gz
mpd-6599e05a25bd2e653c2daf8abbe0e141b75bf4ac.tar.xz
mpd-6599e05a25bd2e653c2daf8abbe0e141b75bf4ac.zip
strip return characters that are in the id3 tags
git-svn-id: https://svn.musicpd.org/mpd/trunk@229 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/utils.c')
-rw-r--r--src/utils.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/utils.c b/src/utils.c
index df0562ab3..d5f6c90c2 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -37,3 +37,9 @@ char * strDupToUpper(char * str) {
return ret;
}
+
+void stripReturnChar(char * string) {
+ if(string && (string = strstr(string,"\n"))) {
+ *string = '\0';
+ }
+}