comparison 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
comparison
equal deleted inserted replaced
59:bdc97a5719f4 61:3a4f0ef1e8c3
176 176
177 /* Put the string length at the start of the buffer */ 177 /* Put the string length at the start of the buffer */
178 bufpos2 = ses.writepayload->pos; 178 bufpos2 = ses.writepayload->pos;
179 179
180 buf_setpos(ses.writepayload, bufpos1); /* Jump back */ 180 buf_setpos(ses.writepayload, bufpos1); /* Jump back */
181 buf_putint(ses.writepayload, bufpos2 - bufpos1); /* len(termcodes) */ 181 buf_putint(ses.writepayload, bufpos2 - bufpos1 - 4); /* len(termcodes) */
182 buf_setpos(ses.writepayload, bufpos2); /* Back where we were */ 182 buf_setpos(ses.writepayload, bufpos2); /* Back where we were */
183 183
184 TRACE(("leave put_termcodes")); 184 TRACE(("leave put_termcodes"));
185 } 185 }
186 186