diff --git a/internal/platform/implementation/linux/wifi_hotspot.cc b/internal/platform/implementation/linux/wifi_hotspot.cc index 58891d76..3fdf4599 100644 --- a/internal/platform/implementation/linux/wifi_hotspot.cc +++ b/internal/platform/implementation/linux/wifi_hotspot.cc @@ -141,7 +141,7 @@ bool NetworkManagerWifiHotspotMedium::StartWifiHotspot( return false; } - char id_cstr[SD_ID128_STRING_MAX]; + char id_cstr[SD_ID128_UUID_STRING_MAX]; sd_id128_to_string(id, id_cstr); std::string ssid = absl::StrCat("DIRECT-", id_cstr); @@ -163,7 +163,7 @@ bool NetworkManagerWifiHotspotMedium::StartWifiHotspot( << std::strerror(ret); return false; } - sd_id128_to_string(id, id_cstr); + sd_id128_to_uuid_string(id, id_cstr); std::vector ssid_bytes(ssid.begin(), ssid.end()); std::map>