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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user