# HG changeset patch # User Sean Egan # Date 1030486975 0 # Node ID 8de4f34a1bd745bfa8b0482bc0538630dffd4061 # Parent de42733886c15ca59b72d165b1abd1e48dc3f62f [gaim-migrate @ 3500] Thanks Chris Blizzard. committer: Tailor Script diff -r de42733886c1 -r 8de4f34a1bd7 src/browser.c --- a/src/browser.c Tue Aug 27 22:03:57 2002 +0000 +++ b/src/browser.c Tue Aug 27 22:22:55 2002 +0000 @@ -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;