gnokii-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-30


From: Daniele Forsi
Subject: [SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-30-g35d70d7
Date: Thu, 01 Jul 2010 20:51:54 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "libgnokii and core programs".

The branch, master has been updated
       via  35d70d70c66b42a6a9ee65f153a0e093360bc26a (commit)
      from  8deee072e5d43ef6bf56e3810fb16d0fded2a79f (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/gnokii.git/commit/?id=35d70d70c66b42a6a9ee65f153a0e093360bc26a


commit 35d70d70c66b42a6a9ee65f153a0e093360bc26a
Author: Daniele Forsi <address@hidden>
Date:   Thu Jul 1 22:42:47 2010 +0200

    For phones that encode memory names sscanf() might need to read more than 2 
chars
    
    Depending on AT+CSCS setting the same phone can return one of the following 
lines:
    +CPMS: "0053004D",50,50,"0053004D",50,50,"004D0045",121,1000
    +CPMS: "SM",50,50,"SM",50,50,"ME",121,1000

diff --git a/common/phones/atgen.c b/common/phones/atgen.c
index f49804c..c02adca 100644
--- a/common/phones/atgen.c
+++ b/common/phones/atgen.c
@@ -2356,7 +2356,7 @@ static gn_error ReplyGetSMSStatus(int messagetype, 
unsigned char *buffer, int le
        buf.length = length;
        splitlines(&buf);
 
-       if (sscanf(buf.line2, "+CPMS: \"%*c%*c\",%d,%*d", 
&data->sms_status->number) != 1)
+       if (sscanf(buf.line2, "+CPMS: \"%*[^\"]\",%d,%*d", 
&data->sms_status->number) != 1)
                return GN_ERR_FAILED;
 
        data->sms_status->unread = 0;

-----------------------------------------------------------------------

Summary of changes:
 common/phones/atgen.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
libgnokii and core programs



reply via email to

[Prev in Thread] Current Thread [Next in Thread]