diff options
author | Amadeusz Sławiński <amade@asmblr.net> | 2016-10-28 20:59:51 +0200 |
---|---|---|
committer | Amadeusz Sławiński <amade@asmblr.net> | 2016-10-28 21:01:34 +0200 |
commit | 3aa5ba0598310278771a791d2c10a1f5ec02258e (patch) | |
tree | 0d5386309f9bcfdeb85a5df296560a0ab663f4a3 | |
parent | c43e1fecfa23dc3b9215cc5dfc9db5ab6b93ad03 (diff) | |
download | screen-3aa5ba0598310278771a791d2c10a1f5ec02258e.tar.gz |
fix term size in reply
-rw-r--r-- | src/teln.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |