Mercurial > pidgin.yaz
comparison src/browser.c @ 4580:3fef2d45dce0
[gaim-migrate @ 4861]
(12:13:17) ari: This fixes a double-free, resulting in a crash when MALLOC_CHECK_=2, and fixes a problem where when the browser is set to Manual and you click on a link, the same link then becomes corrupted
(12:14:14) ari: basically the last one was because whoever changed browser.c assumed strdelimit returned a new string
committer: Tailor Script <tailor@pidgin.im>
| author | Luke Schierer <lschiere@pidgin.im> |
|---|---|
| date | Wed, 12 Feb 2003 17:16:16 +0000 |
| parents | f61fb41fd1c4 |
| children | 1bf59e3ac4ff |
comparison
equal
deleted
inserted
replaced
| 4579:0ea6a4c53f38 | 4580:3fef2d45dce0 |
|---|---|
| 566 if (!web_command[0]) { | 566 if (!web_command[0]) { |
| 567 do_error_dialog(_("Unable to launch your browser because the 'Manual' browser command has been chosen, but no command has been set."), NULL, GAIM_ERROR); | 567 do_error_dialog(_("Unable to launch your browser because the 'Manual' browser command has been chosen, but no command has been set."), NULL, GAIM_ERROR); |
| 568 return; | 568 return; |
| 569 } | 569 } |
| 570 | 570 |
| 571 space_free_url = g_strdelimit(url, " ", '+'); | 571 space_free_url = g_strdup(url); |
| 572 g_strdelimit(space_free_url, " ", '+'); | |
| 572 command = g_strdup_printf("%s %s", web_command, space_free_url); | 573 command = g_strdup_printf("%s %s", web_command, space_free_url); |
| 573 g_free(space_free_url); | 574 g_free(space_free_url); |
| 574 } break; | 575 } break; |
| 575 } | 576 } |
| 576 | 577 |
