aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2012-02-07 13:59:32 -0600
committerDan Williams <dcbw@redhat.com>2012-02-07 13:59:32 -0600
commit2104cd725a5f3f9aeacf4dfc4faa70dba293789d (patch)
tree4464e4d6a62848cc141b861da4318c8e787716bb /src
parentc7f54a635a84d5861b1d5f819c25de97b8c0ac32 (diff)
gsm: ensure text mode SMS list doesn't pick up too much text
This likely has no effect, but just make sure the regex stops grabbing message content when it hits the CF/LF that terminates the message content in text mode.
Diffstat (limited to 'src')
-rw-r--r--src/mm-generic-gsm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mm-generic-gsm.c b/src/mm-generic-gsm.c
index feac3357..7fe562a4 100644
--- a/src/mm-generic-gsm.c
+++ b/src/mm-generic-gsm.c
@@ -5178,7 +5178,7 @@ text_parse_cmgl (MMGenericGsm *self, const char *response, GError **error)
priv = MM_GENERIC_GSM_GET_PRIVATE (self);
/* +CMGL: <index>,<stat>,<oa/da>,[alpha],<scts><CR><LF><data><CR><LF> */
- r = g_regex_new ("\\+CMGL:\\s*(\\d+)\\s*,\\s*([^,]*),\\s*([^,]*),\\s*([^,]*),\\s*([^\\r\\n]*)\\r\\n(.*)", 0, 0, NULL);
+ r = g_regex_new ("\\+CMGL:\\s*(\\d+)\\s*,\\s*([^,]*),\\s*([^,]*),\\s*([^,]*),\\s*([^\\r\\n]*)\\r\\n([^\\r\\n]*)", 0, 0, NULL);
g_assert (r);
if (!g_regex_match_full (r, response, strlen (response), 0, 0, &match_info, NULL)) {