From: Felix Fietkau Date: Tue, 19 Feb 2013 03:01:58 +0000 (+0100) Subject: fix 7-bit encoding X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a9d11dff5ca4d7fbb693ecd2e41213d901ae8f9e;p=oweals%2Fuqmi.git fix 7-bit encoding --- diff --git a/commands-wms.c b/commands-wms.c index 7b3b925..cd15fbf 100644 --- a/commands-wms.c +++ b/commands-wms.c @@ -469,7 +469,7 @@ pdu_encode_7bit_str(unsigned char *data, const char *str) break; } - ofs = (ofs + 1) % 7; + ofs = (ofs + 1) % 8; } return len + 1;