Update of /cvsroot/gaim/gaim/src
In directory usw-pr-cvs1:/tmp/cvs-serv10094/src
Modified Files:
Tag: gtk1-stable
browser.c
Log Message:
Thanks Chris Blizzard. I think that maybe in the future we'll make Gaim not
have any bugs.
Index: browser.c
===================================================================
RCS file: /cvsroot/gaim/gaim/src/browser.c,v
retrieving revision 1.23.2.2
retrieving revision 1.23.2.3
diff -u -d -r1.23.2.2 -r1.23.2.3
--- browser.c 25 Aug 2002 02:42:57 -0000 1.23.2.2
+++ browser.c 27 Aug 2002 22:27:12 -0000 1.23.2.3
@@ -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;
|