[pkg-fso-commits] [SCM] framworkd debian packageing branch, master, updated. milestone2-89-geb27523

Daniel Willmann daniel at totalueberwachung.de
Sat Aug 23 14:06:20 UTC 2008


The following commit has been merged in the master branch:
commit f6ed37755b921c203adea30cd8d19c8c5cd05925
Author: Daniel Willmann <daniel at totalueberwachung.de>
Date:   Mon Aug 18 17:51:15 2008 +0200

    ogsmd: Fix an off-by-one bug with GSM address field parsing

diff --git a/framework/subsystems/ogsmd/gsm/convert.py b/framework/subsystems/ogsmd/gsm/convert.py
index d7011c3..70d5969 100644
--- a/framework/subsystems/ogsmd/gsm/convert.py
+++ b/framework/subsystems/ogsmd/gsm/convert.py
@@ -22,11 +22,9 @@ def decodePDUNumber(bs):
     num_plan = (bs[0] & 0x0F)
     number = bs[1:]
     if num_type == 5:
-        # FIXME: 8 seems to be right here, how to calculate?
-        pad = 8
-        number = unpack_sevenbit(bs, pad)
+        number = unpack_sevenbit(number)
     else:
-        number = bcd_decode(bs)
+        number = bcd_decode(number)
     return (num_type, num_plan, number)
 
 #=========================================================================#

-- 
framworkd debian packageing



More information about the pkg-fso-commits mailing list