aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-03 14:52:49 +0100
committerMax Kellermann <max@duempel.org>2009-01-03 14:52:49 +0100
commit03524fb81c81cf41b10fe1e478cd6a029afe1f29 (patch)
treebe03afa018683a914741301eba5f16efa3b836db /src/utils.c
parentd342e338db085e8e8f6eded2aef48c7ca41239ae (diff)
downloadmpd-03524fb81c81cf41b10fe1e478cd6a029afe1f29.tar.gz
mpd-03524fb81c81cf41b10fe1e478cd6a029afe1f29.tar.xz
mpd-03524fb81c81cf41b10fe1e478cd6a029afe1f29.zip
tag: use g_strescape() to eliminate evil characters
This always allocates strings on the heap, but we can delete the stripReturnChar() function now.
Diffstat (limited to '')
-rw-r--r--src/utils.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/utils.c b/src/utils.c
index 4815a0bc1..c30712660 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -40,13 +40,6 @@
#include <windows.h>
#endif
-void stripReturnChar(char *string)
-{
- while (string && (string = strchr(string, '\n'))) {
- *string = ' ';
- }
-}
-
void my_usleep(long usec)
{
#ifdef WIN32