diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2013-04-24 22:48:18 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2013-04-24 22:48:18 +0200 |
commit | 126d89b2f311b46784434db52a6614699bac83b5 (patch) | |
tree | 5cc61a7ce17bceea6416670438a0b350863e9049 | |
parent | 4ac3a6d4f212b3fc04e004c85b89fd567e865ffa (diff) | |
download | ModemManager-126d89b2f311b46784434db52a6614699bac83b5.tar.gz |
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
-rw-r--r-- | plugins/x22x/mm-broadband-modem-x22x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/x22x/mm-broadband-modem-x22x.c b/plugins/x22x/mm-broadband-modem-x22x.c index 758e8f3de..76be9b7fc 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)) { |