# HG changeset patch # User William Pitcock # Date 1192324365 18000 # Node ID d8e453d09ee440a180ce3af16cc174cf8f33fab5 # Parent 2ffc6a69fcd1854e130dffa813a3adc31ddda847 unbreak song_change diff -r 2ffc6a69fcd1 -r d8e453d09ee4 src/song_change/song_change.c --- a/src/song_change/song_change.c Sat Oct 13 19:55:04 2007 -0500 +++ b/src/song_change/song_change.c Sat Oct 13 20:12:45 2007 -0500 @@ -83,39 +83,6 @@ } } -/* - * aud_escape_shell_chars() - * - * Escapes characters that are special to the shell inside double quotes. - */ -static char* aud_escape_shell_chars(const char *string) -{ - const char *special = "$`\"\\"; /* Characters to escape */ - const char *in = string; - char *out; - char *escaped; - int num = 0; - - while (*in != '\0') - if (strchr(special, *in++)) - num++; - - escaped = g_malloc(strlen(string) + num + 1); - - in = string; - out = escaped; - - while (*in != '\0') - { - if (strchr(special, *in)) - *out++ = '\\'; - *out++ = *in++; - } - *out = '\0'; - - return escaped; -} - /* Format codes: * * F - frequency (in hertz)