Wed Jan 12 21:37:20 GMT 2000
(gilbertt) Oops. Fixed a long standing bug in E-Urlwatch. Noone uses the ftp or get buttons obviously ;) SVN revision: 1911
This commit is contained in:
parent
115dc681cf
commit
429d293b28
|
@ -1789,3 +1789,11 @@ option --disable-auto-respawn to prevent epplets remembering to restart
|
|||
*I have not tested this* because I refuse to run gnome-session on this box,
|
||||
but I see no reason why it shouldn't be ok.
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
Wed Jan 12 21:37:20 GMT 2000
|
||||
(gilbertt)
|
||||
|
||||
Oops. Fixed a long standing bug in E-Urlwatch. Noone uses the ftp or get
|
||||
buttons obviously ;)
|
||||
|
||||
|
|
|
@ -643,24 +643,33 @@ handle_url (char *url, char *type)
|
|||
|
||||
D (("In handle_url: url -->%s<--\n", url));
|
||||
|
||||
/* This should be close enough :) */
|
||||
len = strlen (opt.www_command) + strlen (url);
|
||||
sys = malloc (len);
|
||||
|
||||
if (!strcmp (type, "www"))
|
||||
{
|
||||
/* This should be close enough :) */
|
||||
len = strlen (opt.www_command) + strlen (url) + 2;
|
||||
sys = malloc (len);
|
||||
Esnprintf (sys, len, opt.www_command, url);
|
||||
}
|
||||
else if (!strcmp (type, "ftp"))
|
||||
{
|
||||
/* This should be close enough :) */
|
||||
len = strlen (opt.ftp_command) + strlen (url) + 2;
|
||||
sys = malloc (len);
|
||||
Esnprintf (sys, len, opt.ftp_command, url);
|
||||
}
|
||||
else if (!strcmp (type, "get"))
|
||||
{
|
||||
/* This should be close enough :) */
|
||||
len = strlen (opt.get_command) + strlen (url) + 2;
|
||||
sys = malloc (len);
|
||||
Esnprintf (sys, len, opt.get_command, url);
|
||||
}
|
||||
else
|
||||
{
|
||||
/* This should be close enough :) */
|
||||
len = strlen (opt.www_command) + strlen (url) + 2;
|
||||
sys = malloc (len);
|
||||
Esnprintf (sys, len, opt.www_command, url);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue