SWDEV-387508 - do not treat uuid as string

Signed-off-by: sdashmiz <shadi.dashmiz@amd.com>
Change-Id: I4de88330650eba4e4259686cdb5fb089b17aa8e4
This commit is contained in:
sdashmiz
2023-03-22 15:05:42 -04:00
committed by Shadi Dashmiz
parent 42e7cb77d9
commit 261ce9837c
+1 -2
View File
@@ -268,8 +268,7 @@ hipError_t hipDeviceGetUuid(hipUUID* uuid, hipDevice_t device) {
auto* deviceHandle = g_devices[device]->devices()[0];
const auto& info = deviceHandle->info();
::strncpy(uuid->bytes, info.uuid_, 16);
memcpy(uuid->bytes, info.uuid_, sizeof(info.uuid_));
HIP_RETURN(hipSuccess);
}