mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-05 07:40:28 +01:00
libnm-util: fix parsing permission if it includes detail
This commit is contained in:
parent
f82f0aa654
commit
2ef55166c8
1 changed files with 1 additions and 1 deletions
|
|
@ -136,7 +136,7 @@ permission_new_from_str (const char *str)
|
|||
g_return_val_if_fail (last_colon > str, NULL);
|
||||
|
||||
/* Make sure we don't include detail in the username */
|
||||
ulen = (last_colon - str) + 1;
|
||||
ulen = last_colon - str;
|
||||
} else
|
||||
ulen = strlen (str);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue