Mercurial > pidgin
diff src/sound.c @ 2777:0899f8c99a15
[gaim-migrate @ 2790]
that's just rather pathetic
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Tue, 20 Nov 2001 06:16:15 +0000 |
parents | ab2ca2770d2e |
children | c172128500ec |
line wrap: on
line diff
--- a/src/sound.c Tue Nov 20 01:29:42 2001 +0000 +++ b/src/sound.c Tue Nov 20 06:16:15 2001 +0000 @@ -406,14 +406,9 @@ char *args[4]; char command[4096]; char *ms; - if (strstr(sound_cmd, "\"%s\"")) - g_snprintf(command, sizeof(command), sound_cmd, filename); - else if ((ms = strstr(sound_cmd, "%s")) != NULL) { - *ms = 0; - g_snprintf(command, sizeof(command), "%s\"%s\"%s", sound_cmd, - filename, ms + 2); - } else - g_snprintf(command, sizeof(command), sound_cmd); + + g_snprintf(command, sizeof(command), sound_cmd, filename); + args[0] = "sh"; args[1] = "-c"; args[2] = command;