Mercurial > pidgin
comparison src/browser.c @ 2828:06539a384d6b
[gaim-migrate @ 2841]
i love myself better than you
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Sun, 02 Dec 2001 00:47:33 +0000 |
parents | 51999a36c0b1 |
children | a7e03c5d2205 |
comparison
equal
deleted
inserted
replaced
2827:51999a36c0b1 | 2828:06539a384d6b |
---|---|
563 | 563 |
564 void open_url(GtkWidget *w, char *url) | 564 void open_url(GtkWidget *w, char *url) |
565 { | 565 { |
566 | 566 |
567 if (web_browser == BROWSER_NETSCAPE) { | 567 if (web_browser == BROWSER_NETSCAPE) { |
568 char *command = g_malloc(1024); | 568 char *command; |
569 | 569 |
570 if (misc_options & OPT_MISC_BROWSER_POPUP) | 570 if (misc_options & OPT_MISC_BROWSER_POPUP) |
571 g_snprintf(command, 1024, "OpenURL(%s, new-window)", url); | 571 command = g_strdup_printf("OpenURL(%s, new-window)", url); |
572 else | 572 else |
573 g_snprintf(command, 1024, "OpenURL(%s)", url); | 573 command = g_strdup_printf("OpenURL(%s)", url); |
574 | 574 |
575 netscape_command(command); | 575 netscape_command(command); |
576 g_free(command); | 576 g_free(command); |
577 #ifdef USE_GNOME | 577 #ifdef USE_GNOME |
578 } else if (web_browser == BROWSER_GNOME) { | 578 } else if (web_browser == BROWSER_GNOME) { |