From 2104cd725a5f3f9aeacf4dfc4faa70dba293789d Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Tue, 7 Feb 2012 13:59:32 -0600 Subject: 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. --- src/mm-generic-gsm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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: ,,,[alpha], */ - 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)) { -- cgit v1.2.3-70-g09d2