aboutsummaryrefslogtreecommitdiff
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)
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 'src/utils.c')
-rw-r--r--src/utils.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/utils.c b/src/utils.c
index 4815a0bc..c3071266 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