Update of /cvsroot/gaim/gaim/src
In directory usw-pr-cvs1:/tmp/cvs-serv8919/src
Modified Files:
browser.c
Log Message:
Thanks Chris Blizzard.
Index: browser.c
===================================================================
RCS file: /cvsroot/gaim/gaim/src/browser.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -d -r1.27 -r1.28
--- browser.c 24 Aug 2002 01:10:43 -0000 1.27
+++ browser.c 27 Aug 2002 22:22:55 -0000 1.28
@@ -582,20 +582,26 @@
pid = fork();
if (pid == 0) {
+ /* args will be allocated below but we don't bother
+ * freeing it since we're just going to exec and
+ * exit */
char **args;
char command[1024];
if (web_browser == BROWSER_OPERA) {
+ args = g_new(char *, 4);
args[0] = "opera";
args[1] = "-newwindow";
args[2] = url;
args[3] = NULL;
} else if (web_browser == BROWSER_KONQ) {
+ args = g_new(char *, 4);
args[0] = "kfmclient";
args[1] = "openURL";
args[2] = url;
args[3] = NULL;
} else if (web_browser == BROWSER_GALEON) {
+ args = g_new(char *, 4);
args[0] = "galeon";
if (misc_options & OPT_MISC_BROWSER_POPUP) {
args[1] = "-w";
@@ -606,6 +612,7 @@
args[2] = NULL;
}
} else if (web_browser == BROWSER_MOZILLA) {
+ args = g_new(char *, 4);
args[0] = "mozilla";
args[1] = url;
args[2] = NULL;
|