summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmadeusz Sławiński <amade@asmblr.net>2016-10-28 20:59:51 +0200
committerAmadeusz Sławiński <amade@asmblr.net>2016-10-28 21:01:34 +0200
commit3aa5ba0598310278771a791d2c10a1f5ec02258e (patch)
tree0d5386309f9bcfdeb85a5df296560a0ab663f4a3
parentc43e1fecfa23dc3b9215cc5dfc9db5ab6b93ad03 (diff)
downloadscreen-3aa5ba0598310278771a791d2c10a1f5ec02258e.tar.gz
fix term size in reply
-rw-r--r--src/teln.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/teln.c b/src/teln.c
index 0546c35..f61d22b 100644
--- a/src/teln.c
+++ b/src/teln.c
@@ -482,7 +482,7 @@ static void
TelDosub(p)
struct win *p;
{
- char trepl[20 + 6 + 1];
+ char trepl[MAXTERMLEN + 6 + 1];
int l;
switch(p->w_telsubbuf[0])
@@ -491,7 +491,7 @@ struct win *p;
if (p->w_telsubidx != 2 || p->w_telsubbuf[1] != 1)
return;
l = strlen(screenterm);
- if (l >= 20)
+ if (l >= MAXTERMLEN)
break;
sprintf(trepl, "%c%c%c%c%s%c%c", TC_IAC, TC_SB, TO_TTYPE, 0, screenterm, TC_IAC, TC_SE);
TelReply(p, trepl, l + 6);