comparison src/browser.c @ 2777:0899f8c99a15

[gaim-migrate @ 2790] that's just rather pathetic committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Tue, 20 Nov 2001 06:16:15 +0000
parents 62bd04e00eb3
children c172128500ec
comparison
equal deleted inserted replaced
2776:3316f391df38 2777:0899f8c99a15
620 620
621 char command[1024]; 621 char command[1024];
622 622
623 char *ms; 623 char *ms;
624 624
625 if (strstr(web_command, "\"%s\"")) 625 g_snprintf(command, sizeof(command), web_command, url);
626 g_snprintf(command, sizeof(command), web_command, url);
627 else if ((ms = strstr(web_command, "%s")) != NULL) {
628 *ms = 0;
629 g_snprintf(command, sizeof(command), "%s\"%s\"%s", web_command, url,
630 ms + 2);
631 } else
632 g_snprintf(command, sizeof(command), web_command);
633 626
634 args[0] = "sh"; 627 args[0] = "sh";
635 args[1] = "-c"; 628 args[1] = "-c";
636 args[2] = command; 629 args[2] = command;
637 args[3] = NULL; 630 args[3] = NULL;