From df95bb6f6c906485952b8ec036301cfd9832a60b Mon Sep 17 00:00:00 2001 From: tick Date: Mon, 26 Nov 2007 09:11:57 +0000 Subject: [gsmd] to fix on reading a SMS with alpha value. (Erin Yueh) git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3510 99fdad57-331a-0410-800a-d7fa5415bdb3 --- src/gsmd/sms_cb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gsmd/sms_cb.c b/src/gsmd/sms_cb.c index d7db8e5..d640596 100644 --- a/src/gsmd/sms_cb.c +++ b/src/gsmd/sms_cb.c @@ -125,7 +125,7 @@ static int sms_read_cb(struct gsmd_atcmd *cmd, void *ctx, char *resp) if ( sscanf(resp, "+CMGR: %i,,%i\n%n", &stat, &len, &cr) < 2 && - sscanf(resp, "+CMGR: %i,%*i,%i\n%n", + sscanf(resp, "+CMGR: %i,\"%*[^\"]\",%i\n%n", &stat, &len, &cr) < 2) return -EINVAL; if (len > 164) -- cgit v1.2.3