}
}
assert(encp < pi->d + COMMAND_ENCODED_MAX);
- *encp++= (working >> 9) & 0x7f; /* top 7 bits, right-justified */
+ *encp++= ((working >> 9) & 0x7f) | 0x80;
+ /* top 7 bits, right-justified, plus `more command' bit */
working <<= 7;
working_qty -= 7;
}
assert(encp > pi->d);
- encp[-1] |= 0x80; /* `end of command' bit */
+ encp[-1] &= ~0x80; /* clear `more command' bit */
pi->l= encp - pi->d;
}