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-33


From: Pawel Kot
Subject: [SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-334-g7980ae0
Date: Thu, 22 Dec 2011 20:39:49 +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  7980ae01af19177ad590b201993b3d38acb93fdf (commit)
      from  25afdedf8594133153857dddabb5146075a73fed (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=7980ae01af19177ad590b201993b3d38acb93fdf


commit 7980ae01af19177ad590b201993b3d38acb93fdf
Author: Pawel Kot <address@hidden>
Date:   Thu Dec 22 20:23:41 2011 +0100

    Fix reply_simpletext() function
    
    We used isalpha() function instead of isalnum() which resulted in incorrect
    parsing all entries starting with a digit (like IMEI or revision).

diff --git a/common/phones/atgen.c b/common/phones/atgen.c
index 607eae5..7d4f12a 100644
--- a/common/phones/atgen.c
+++ b/common/phones/atgen.c
@@ -234,11 +234,11 @@ static int reply_simpletext(char *req, char *resp, const 
char *tmpl, char *dest,
        if ((strncmp(req, tmpl, n - 2) == 0) || (strncmp(resp, tmpl, n) == 0)) {
                /* Skip the prefix indicating to which command this response is 
responding, if present */
                i = 0;
-               if (resp[i] == '+' || resp[i] == ':' || !isalpha(resp[i])) {
+               if (resp[i] == '+' || resp[i] == ':' || !isalnum(resp[i])) {
                        while (resp[i] && resp[i++] != ':')
                                ;
                }
-               while (isspace(resp[i]) || !isalpha(resp[i]))
+               while (isspace(resp[i]) || !isalnum(resp[i]))
                        i++;
                snprintf(dest, maxlength, "%s", strip_quotes(resp + i));
                return 1;

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

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


hooks/post-receive
-- 
libgnokii and core programs



reply via email to

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