From a9d11dff5ca4d7fbb693ecd2e41213d901ae8f9e Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 19 Feb 2013 04:01:58 +0100 Subject: [PATCH] fix 7-bit encoding --- commands-wms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.25.1