about summary refs log tree commit diff
path: root/Src/Modules/termcap.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/Modules/termcap.c')
-rw-r--r--Src/Modules/termcap.c3
1 files changed, 2 insertions, 1 deletions
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 <lines> <columns> 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;
 }