tag: use g_strescape() to eliminate evil characters

This always allocates strings on the heap, but we can delete the
stripReturnChar() function now.
This commit is contained in:
Max Kellermann
2009-01-03 14:52:49 +01:00
parent d342e338db
commit 03524fb81c
3 changed files with 22 additions and 27 deletions

View File

@@ -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