Mercurial > dropbear
changeset 61:3a4f0ef1e8c3
Write the correct termcodes length
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Mon, 09 Aug 2004 08:18:37 +0000 |
parents | bdc97a5719f4 |
children | 20563735e8b5 |
files | cli-chansession.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/cli-chansession.c Mon Aug 09 08:06:57 2004 +0000 +++ b/cli-chansession.c Mon Aug 09 08:18:37 2004 +0000 @@ -178,7 +178,7 @@ bufpos2 = ses.writepayload->pos; buf_setpos(ses.writepayload, bufpos1); /* Jump back */ - buf_putint(ses.writepayload, bufpos2 - bufpos1); /* len(termcodes) */ + buf_putint(ses.writepayload, bufpos2 - bufpos1 - 4); /* len(termcodes) */ buf_setpos(ses.writepayload, bufpos2); /* Back where we were */ TRACE(("leave put_termcodes"));