mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-08 18:18:03 +02:00
device/bluetooth: avoid g_ascii_strtoull() to parse capabilities
Avoid g_ascii_strtoull() calling directly. It has subtle issues, which is why we have a wrapper for it.
This commit is contained in:
parent
3930ef194e
commit
659ac9cc12
1 changed files with 1 additions and 1 deletions
|
|
@ -221,7 +221,7 @@ convert_uuids_to_capabilities (const char *const*strv)
|
|||
continue;
|
||||
|
||||
s_part1 = g_strndup (str, s - str);
|
||||
switch (g_ascii_strtoull (s_part1, NULL, 16)) {
|
||||
switch (_nm_utils_ascii_str_to_int64 (s_part1, 16, 0, G_MAXINT, -1)) {
|
||||
case 0x1103:
|
||||
capabilities |= NM_BT_CAPABILITY_DUN;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue