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 7b3b925..cd15fbf 100644 (file)
@@ -469,7 +469,7 @@ pdu_encode_7bit_str(unsigned char *data, const char *str)
                        break;
                }
 
                        break;
                }
 
-               ofs = (ofs + 1) % 7;
+               ofs = (ofs + 1) % 8;
        }
 
        return len + 1;
        }
 
        return len + 1;