Mercurial > audlegacy-plugins
changeset 2051:d8e453d09ee4
unbreak song_change
author | William Pitcock <nenolod@atheme.org> |
---|---|
date | Sat, 13 Oct 2007 20:12:45 -0500 |
parents | 2ffc6a69fcd1 |
children | 6f99796c8fe0 059bd21a0c80 |
files | src/song_change/song_change.c |
diffstat | 1 files changed, 0 insertions(+), 33 deletions(-) [+] |
line wrap: on
line diff
--- 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)