Mercurial > pidgin.yaz
changeset 7464:a259e244e44f
[gaim-migrate @ 8077]
fix "the % instead of %s in sound command causes segfault" bug
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Sat, 08 Nov 2003 21:32:13 +0000 |
parents | f2d82df37252 |
children | dedbfdc7ce65 |
files | src/gtksound.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtksound.c Sat Nov 08 09:00:36 2003 +0000 +++ b/src/gtksound.c Sat Nov 08 21:32:13 2003 +0000 @@ -174,7 +174,10 @@ return; } - command = g_strdup_printf(sound_cmd, filename); + if(strstr(sound_cmd, "%s")) + command = gaim_strreplace(sound_cmd, "%s", filename); + else + command = g_strdup_printf("%s %s", sound_cmd, filename); if(!g_spawn_command_line_async(command, &error)) { char *tmp = g_strdup_printf(_("Unable to play sound because the configured sound command could not be launched: %s"), error->message);