aboutsummaryrefslogtreecommitdiff
path: root/contrib/ncurses/progs/dump_entry.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ncurses/progs/dump_entry.c')
-rw-r--r--contrib/ncurses/progs/dump_entry.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/ncurses/progs/dump_entry.c b/contrib/ncurses/progs/dump_entry.c
index 3830742fcbd6..60c88d3f9cab 100644
--- a/contrib/ncurses/progs/dump_entry.c
+++ b/contrib/ncurses/progs/dump_entry.c
@@ -38,7 +38,7 @@
#include "termsort.c" /* this C file is generated */
#include <parametrized.h> /* so is this */
-MODULE_ID("$Id: dump_entry.c,v 1.53 2000/04/15 21:23:30 tom Exp $")
+MODULE_ID("$Id: dump_entry.c,v 1.54 2000/10/01 01:34:06 tom Exp $")
#define INDENT 8
#define DISCARD(string) string = ABSENT_STRING
@@ -641,8 +641,9 @@ fmt_entry(TERMTYPE * tterm,
sprintf(buffer, "%s@", name);
WRAP_CONCAT;
} else if (outform == F_TERMCAP || outform == F_TCONVERR) {
+ int params = (i < (int) SIZEOF(parametrized)) ? parametrized[i] : 0;
char *srccap = _nc_tic_expand(tterm->Strings[i], TRUE, numbers);
- char *cv = _nc_infotocap(name, srccap, parametrized[i]);
+ char *cv = _nc_infotocap(name, srccap, params);
if (cv == 0) {
if (outform == F_TCONVERR) {