# HG changeset patch # User Nathan Walp # Date 1068327133 0 # Node ID a259e244e44f474a7fd2732cb3d02ebdc3857a6a # Parent f2d82df37252e04c75702dd635af115f108e212b [gaim-migrate @ 8077] fix "the % instead of %s in sound command causes segfault" bug committer: Tailor Script diff -r f2d82df37252 -r a259e244e44f src/gtksound.c --- 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);