diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-03-09 20:55:51 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-03-09 20:55:51 +0000 |
commit | 6599e05a25bd2e653c2daf8abbe0e141b75bf4ac (patch) | |
tree | 56b36de7e6e52d32fa244c52477bc0bf1eea1b7c /src/utils.c | |
parent | ff1659ed4c37a4f760ac02d4c592c48ef42ef9db (diff) |
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.c | 6 |
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'; + } +} |