summaryrefslogtreecommitdiff
path: root/src/gsmd
diff options
context:
space:
mode:
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