On Tue, 17 Mar 2009 12:51:09 +0100
Michael 'Mickey' Lauer <mic...@vanille-media.de> wrote:

> > > > 2) this sms is without destination adress so sms.py makes an
> > > > error. To
> > > avoid
> > > > this, I have patched sms.py with this :
> > > > --- sms.py.orig Sat Mar 14 15:43:25 2009
> > > > +++ sms.py      Mon Mar 16 13:17:16 2009
> > > > @@ -157,7 +157,9 @@
> > > >          # XXX: Is this correct? Can we detect the @-padding
> > > > issue in # address_len?
> > > >          address_len = 1 + (bytes[offset] + 1) / 2
> > > >          offset += 1
> > > > -        address =
> > > > PDUAddress.decode( bytes[offset:offset+address_len] )
> > > > +        address = "";
> > > > +        if (address_len > 1):
> > > > +            address =
> > > > PDUAddress.decode( bytes[offset:offset+address_len]
> > > )
> > > >          return ( address, address_len  + 1 )
> > > >
> > > >      def _parse_userdata( self, ud_len, bytes ):
> > >
> > > Excellent, thanks!
> > >
> > 
> > When (if) you have time, could it be commit. Such that I can use
> > the original frameworkd ?
> 
> If Daniel ACKs this change. then we can commit asap.

Give me today to think about this and come up with a general solution.
This will need to be changed in more places than this one or in the
PDUAddress class.

Regards,
Daniel Willmann

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Smartphones-userland mailing list
Smartphones-userland@linuxtogo.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/smartphones-userland

Reply via email to