summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-02-19 04:01:58 +0100
committerFelix Fietkau <nbd@openwrt.org>2013-02-19 04:01:58 +0100
commita9d11dff5ca4d7fbb693ecd2e41213d901ae8f9e (patch)
tree9ae28c8b66ec28b392385e702f8f8ec73071bd4e
parentbfe1be97f0cbf840ea7adba7eaaf90e57b6904c9 (diff)
fix 7-bit encoding
-rw-r--r--commands-wms.c2
1 files changed, 1 insertions, 1 deletions
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;