Message ID | 1418915535-11838-1-git-send-email-s.demeszko@wireless-instruments.com |
---|---|
State | Accepted |
Headers | show |
On 2014-12-18 16:12, Sławomir Demeszko wrote: > Return proper length of encoded phone number with odd count of digits, > without this patch number is encoded in memory but length returned > by function is not incremented and sms cannot be send. > > Signed-off-by: Sławomir Demeszko <s.demeszko@wireless-instruments.com> Applied, thanks. - Felix
diff --git a/commands-wms.c b/commands-wms.c index b85cd70..02874f0 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
Return proper length of encoded phone number with odd count of digits, without this patch number is encoded in memory but length returned by function is not incremented and sms cannot be send. Signed-off-by: Sławomir Demeszko <s.demeszko@wireless-instruments.com> --- commands-wms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)