From 03524fb81c81cf41b10fe1e478cd6a029afe1f29 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 3 Jan 2009 14:52:49 +0100 Subject: tag: use g_strescape() to eliminate evil characters This always allocates strings on the heap, but we can delete the stripReturnChar() function now. --- src/utils.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/utils.c') 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 #endif -void stripReturnChar(char *string) -{ - while (string && (string = strchr(string, '\n'))) { - *string = ' '; - } -} - void my_usleep(long usec) { #ifdef WIN32 -- cgit v1.2.3