SWDEV-327299 - strncpy to memcpy to avoid overflow warning
Change-Id: I0bb5aed76e74b4580bae71b6cb1ef2c17293a126
This commit is contained in:
@@ -144,7 +144,7 @@ hipError_t hipDeviceGetName(char *name, int len, hipDevice_t device) {
|
||||
HIP_RETURN(hipErrorInvalidValue);
|
||||
}
|
||||
|
||||
::strncpy(name, info.boardName_, (nameLen + 1));
|
||||
::memcpy(name, info.boardName_, (nameLen + 1));
|
||||
|
||||
HIP_RETURN(hipSuccess);
|
||||
}
|
||||
|
||||
Fai riferimento in un nuovo problema
Block a user