diff options
author | Matt Johnston <matt@ucc.asn.au> | 2004-08-09 08:18:37 +0000 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2004-08-09 08:18:37 +0000 |
commit | 254e8e34524db48e5ad73d26a923d20b03dd8bf3 (patch) | |
tree | 4b503a12638d4db970b44903efe3266b1d38761d /cli-chansession.c | |
parent | baae2d870304b541597e4a7fd234b3cad9fcfa52 (diff) |
Write the correct termcodes length
--HG--
extra : convert_revision : 820649664926ee4346c564fc4d9c8e211d541092
Diffstat (limited to 'cli-chansession.c')
-rw-r--r-- | cli-chansession.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli-chansession.c b/cli-chansession.c index e34c6fd..6c48f05 100644 --- a/cli-chansession.c +++ b/cli-chansession.c @@ -178,7 +178,7 @@ static void put_termcodes() { 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")); |