modem-helpers: fix method for distinguishing lac and stat values

Stat value may be multidigit e.g. 10 or 11.

Signed-off-by: Kirill Buksha <kirbuk200@gmail.com>
This commit is contained in:
Kirill Buksha
2025-05-14 13:54:47 +02:00
parent e5c4cbc79a
commit 02131bf3bb
+2 -2
View File
@@ -2001,10 +2001,10 @@ item_is_lac_not_stat (GMatchInfo *info, guint32 item)
gchar *str;
gboolean is_lac = FALSE;
/* A <stat> will always be a single digit, without quotes */
/* A <stat> will always be a digit < 100, without quotes */
str = g_match_info_fetch (info, item);
g_assert (str);
is_lac = (strchr (str, '"') || strlen (str) > 1);
is_lac = (strchr (str, '"') || strlen (str) > 2);
g_free (str);
return is_lac;
}