mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-27 01:10:38 +01: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. (cherry picked from commit659ac9cc12) (cherry picked from commit62469c1401) (cherry picked from commit386ea3ff26)
This commit is contained in:
parent
5b552d2946
commit
2511c64ea4
1 changed files with 1 additions and 1 deletions
|
|
@ -680,7 +680,7 @@ convert_uuids_to_capabilities (const char **strings)
|
|||
|
||||
parts = g_strsplit (*iter, "-", -1);
|
||||
if (parts && parts[0]) {
|
||||
switch (g_ascii_strtoull (parts[0], NULL, 16)) {
|
||||
switch (_nm_utils_ascii_str_to_int64 (parts[0], 16, 0, G_MAXINT, -1)) {
|
||||
case 0x1103:
|
||||
capabilities |= NM_BT_CAPABILITY_DUN;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue