diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2010-12-11 15:26:32 -0500 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2010-12-11 15:26:32 -0500 |
commit | 14ee67ba5e4e2df67004f0e7e27fb1df993c5619 (patch) | |
tree | 6b2a62418c88e8f5bce1cb31eb5a4b03165d354b /src/LYExtern.c | |
parent | f6ef3f03e831c3e150a18f31675862794e6c8c7f (diff) | |
download | lynx-snapshots-14ee67ba5e4e2df67004f0e7e27fb1df993c5619.tar.gz |
snapshot of project "lynx", label v2-8-8dev_7
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; |