# HG changeset patch # User Matt Johnston # Date 1092039517 0 # Node ID 3a4f0ef1e8c3feaf40b9739cf8dc59c9934221c6 # Parent bdc97a5719f4a5e97ade8ef92083f272b706c7b4 Write the correct termcodes length diff -r bdc97a5719f4 -r 3a4f0ef1e8c3 cli-chansession.c --- 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"));