]> git.neil.brown.name Git - plato.git/commitdiff
gsm-getsms: fix multipath unicode decoding bug.
authorNeilBrown <neilb@suse.de>
Tue, 24 Mar 2015 03:44:18 +0000 (14:44 +1100)
committerNeilBrown <neilb@suse.de>
Tue, 24 Mar 2015 03:44:18 +0000 (14:44 +1100)
Missed an offset..

Signed-off-by: NeilBrown <neil@brown.name>
gsm/gsm-getsms.py

index 154dcae9beadcebfbb0230163c3e1dbaf7a8e269..1dfc091f30ef467319f4876da1ea0dfa79a0b259 100644 (file)
@@ -342,7 +342,7 @@ def main():
                     ref  = body[6:8]
                     part = ( int(body[10:12],16), int(body[8:10], 16))
                     if coding == '08':
-                        txt = sms_unicode_decode(body)
+                        txt = sms_unicode_decode(body[12:])
                     else:
                         txt = sms_decode(body[12:],0)
                 elif body[0:6] == '060504':