diff options
Diffstat (limited to 'src/LYExtern.c')
-rw-r--r-- | src/LYExtern.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/LYExtern.c b/src/LYExtern.c index 94d2cb58..7809ca5f 100644 --- a/src/LYExtern.c +++ b/src/LYExtern.c @@ -1,5 +1,5 @@ /* - * $LynxId: LYExtern.c,v 1.47 2010/12/09 00:34:51 tom Exp $ + * $LynxId: LYExtern.c,v 1.48 2010/12/11 13:08:13 tom Exp $ * External application support. This feature allows lynx to pass a given URL to an external program. @@ -239,7 +239,7 @@ static char *lookup_external(char *param, int only_overriders) { int pass, num_disabled, num_matched, num_choices, cur_choice; - int length = 0; + size_t length = 0; char *cmdbuf = NULL; char **actions = 0; char **choices = 0; @@ -263,7 +263,8 @@ static char *lookup_external(char *param, cmdbuf = format_command(ptr->command, param); if (length > 1) { actions[num_choices] = cmdbuf; - choices[num_choices] = ptr->menu_name; + choices[num_choices] = + format_command(ptr->menu_name, param); } } num_choices++; @@ -272,8 +273,8 @@ static char *lookup_external(char *param, } if (length > 1) { if (pass == 0) { - actions = typecallocn(char *, (unsigned) length + 1); - choices = typecallocn(char *, (unsigned) length + 1); + actions = typecallocn(char *, length + 1); + choices = typecallocn(char *, length + 1); } else { actions[num_choices] = 0; choices[num_choices] = 0; |