Mercurial > dropbear
diff cli-chansession.c @ 61:3a4f0ef1e8c3
Write the correct termcodes length
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Mon, 09 Aug 2004 08:18:37 +0000 |
parents | 18eccbfb9641 |
children | e3adf4cf5465 |
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"));