From 4a007b41d748f1e6b7810ffe74d100981b8f08fc Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Wed, 2 Mar 2005 16:13:35 +0000 Subject: * 20911: Src/Modules/termcap.c: and set affcnt to 1 unconditionally when we echotc a capability with arguments (which we then assume to be the 'cm' capability, with arguments in the form . --- Src/Modules/termcap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Src/Modules/termcap.c') diff --git a/Src/Modules/termcap.c b/Src/Modules/termcap.c index deae7c190..8573477c5 100644 --- a/Src/Modules/termcap.c +++ b/Src/Modules/termcap.c @@ -154,8 +154,9 @@ bin_echotc(char *name, char **argv, UNUSED(Options ops), UNUSED(int func)) if (!argct) tputs(t, 1, putraw); else { + /* This assumes arguments of for cap 'cm' */ num = (argv[1]) ? atoi(argv[1]) : atoi(*argv); - tputs(tgoto(t, num, atoi(*argv)), num, putraw); + tputs(tgoto(t, num, atoi(*argv)), 1, putraw); } return 0; } -- cgit v1.2.3