summaryrefslogtreecommitdiff
path: root/src/gsmd
diff options
context:
space:
mode:
authortick <tick@99fdad57-331a-0410-800a-d7fa5415bdb3>2007-11-26 09:11:57 +0000
committertick <tick@99fdad57-331a-0410-800a-d7fa5415bdb3>2007-11-26 09:11:57 +0000
commitdf95bb6f6c906485952b8ec036301cfd9832a60b (patch)
tree0f73f8f3ec88062fbd1b9d1b92b78ccf6e96a1e6 /src/gsmd
parentb1fc49979c5a752c9b83332c6b35dbf43016f1b4 (diff)
[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
Diffstat (limited to 'src/gsmd')
-rw-r--r--src/gsmd/sms_cb.c2
1 files changed, 1 insertions, 1 deletions
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)
personal git repositories of Harald Welte. Your mileage may vary