X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuqmi.git;a=blobdiff_plain;f=commands-wms.c;fp=commands-wms.c;h=e3bcbc87eaeb14cf7ce59e88327a94fb77872ce9;hp=345b81210338cbdb41ff456af5930cda4b699a8f;hb=320675a242ace4bc8a4aa33fe0d5ae360119e476;hpb=dc1dfedccc6cfa0205feecdbb5eb2c51d9aa3a4d diff --git a/commands-wms.c b/commands-wms.c index 345b812..e3bcbc8 100644 --- a/commands-wms.c +++ b/commands-wms.c @@ -512,7 +512,7 @@ pdu_encode_semioctet(unsigned char *dest, const char *str) str++; } - return len; + return lower ? len : (len + 1); } static int