fix 7-bit encoding
authorFelix Fietkau <nbd@openwrt.org>
Tue, 19 Feb 2013 03:01:58 +0000 (04:01 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 19 Feb 2013 03:01:58 +0000 (04:01 +0100)
commands-wms.c

index 7b3b925eae061c042966a14b3d5d01e7227034a7..cd15fbf7dc0e904823f1283a2b6da4e41c1cb4b7 100644 (file)
@@ -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;