# HG changeset patch # User Sean Egan # Date 1029986019 0 # Node ID 68fdee3dd3ef7a46b480d25faa939202b8e85b68 # Parent bfb951e56c12b73a0c8f3b15cf3ecb65e3544379 [gaim-migrate @ 3436] That was so broken. committer: Tailor Script diff -r bfb951e56c12 -r 68fdee3dd3ef src/browser.c --- a/src/browser.c Thu Aug 22 00:45:49 2002 +0000 +++ b/src/browser.c Thu Aug 22 03:13:39 2002 +0000 @@ -636,7 +636,8 @@ if (pid == 0) { char *args[4]; char command[1024]; - + char *quoted = NULL; + if (web_browser == BROWSER_OPERA) { args[0] = "opera"; args[1] = "-newwindow"; @@ -662,16 +663,17 @@ args[1] = url; args[2] = NULL; } else if (web_browser == BROWSER_MANUAL) { - char *quoted = g_shell_quote(command); g_snprintf(command, sizeof(command), web_command, quoted); - g_free(quoted); + quoted = g_shell_quote(command); args[0] = "sh"; args[1] = "-c"; - args[2] = command; + args[2] = quoted; args[3] = NULL; } execvp(args[0], args); + if (quoted) + g_free(quoted); _exit(0); } }