From: Sean E. <sea...@us...> - 2002-08-22 03:13:42
|
Update of /cvsroot/gaim/gaim/src In directory usw-pr-cvs1:/tmp/cvs-serv19522/src Modified Files: browser.c Log Message: That was so broken. Index: browser.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/browser.c,v retrieving revision 1.24 retrieving revision 1.25 diff -u -d -r1.24 -r1.25 --- browser.c 11 Aug 2002 09:03:32 -0000 1.24 +++ browser.c 22 Aug 2002 03:13:39 -0000 1.25 @@ -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); } } |