From 126d89b2f311b46784434db52a6614699bac83b5 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Wed, 24 Apr 2013 22:48:18 +0200 Subject: [PATCH] x22x: fix regex when parsing +SYSSEL response The numbers reported by +SYSSEL may have more than one digit, e.g.: +SYSSEL: 14,2,0,0 https://bugzilla.gnome.org/show_bug.cgi?id=698774 --- plugins/x22x/mm-broadband-modem-x22x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/x22x/mm-broadband-modem-x22x.c b/plugins/x22x/mm-broadband-modem-x22x.c index 758e8f3d..76be9b7f 100644 --- a/plugins/x22x/mm-broadband-modem-x22x.c +++ b/plugins/x22x/mm-broadband-modem-x22x.c @@ -56,7 +56,7 @@ load_allowed_modes_finish (MMIfaceModem *self, if (!response) return FALSE; - r = g_regex_new ("\\+SYSSEL:\\s*(\\d),(\\d),(\\d),(\\d)", G_REGEX_UNGREEDY, 0, NULL); + r = g_regex_new ("\\+SYSSEL:\\s*(\\d+),(\\d+),(\\d+),(\\d+)", G_REGEX_UNGREEDY, 0, NULL); g_assert (r != NULL); if (!g_regex_match_full (r, response, strlen (response), 0, 0, &match_info, error)) {