mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-06 23:20:34 +01:00
ifcfg-rh: use correct initial size for storing SSID
This commit is contained in:
parent
2c4919ae84
commit
583dd00fc1
1 changed files with 1 additions and 1 deletions
|
|
@ -1681,7 +1681,7 @@ make_wireless_setting (shvarFile *ifcfg,
|
|||
goto error;
|
||||
}
|
||||
|
||||
array = g_byte_array_sized_new (strlen (p));
|
||||
array = g_byte_array_sized_new (ssid_len);
|
||||
g_byte_array_append (array, (const guint8 *) p, ssid_len);
|
||||
g_object_set (s_wireless, NM_SETTING_WIRELESS_SSID, array, NULL);
|
||||
g_byte_array_free (array, TRUE);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue