Mercurial > pidgin.yaz
comparison src/browser.c @ 2077:824dc84315c7
[gaim-migrate @ 2087]
Blahblah blah
committer: Tailor Script <tailor@pidgin.im>
author | Rob Flynn <gaim@robflynn.com> |
---|---|
date | Tue, 17 Jul 2001 19:19:42 +0000 |
parents | 2d5fef1f986d |
children | b66aca8e8dce |
comparison
equal
deleted
inserted
replaced
2076:6778b4b91221 | 2077:824dc84315c7 |
---|---|
601 if (pid == 0) { | 601 if (pid == 0) { |
602 char *args[4]; | 602 char *args[4]; |
603 | 603 |
604 char command[1024]; | 604 char command[1024]; |
605 | 605 |
606 g_snprintf(command, sizeof(command), web_command, url); | 606 if ((url[0] == '\"') && (url[strlen(url)-1] == '\"')) |
607 g_snprintf(command, sizeof(command), web_command, url); | |
608 else | |
609 g_snprintf(command, sizeof(command), "%s \"%s\"", web_command, url); | |
607 | 610 |
608 args[0] = "sh"; | 611 args[0] = "sh"; |
609 args[1] = "-c"; | 612 args[1] = "-c"; |
610 args[2] = command; | 613 args[2] = command; |
611 args[3] = NULL; | 614 args[3] = NULL; |