SWDEV-327299 - strncpy to memcpy to avoid overflow warning

Change-Id: I0bb5aed76e74b4580bae71b6cb1ef2c17293a126


[ROCm/clr commit: ba6d6b377d]
此提交包含在:
Ajay authored and Ajay GunaShekar committed 2022-03-11 17:37:30 -05:00
1 父節點 7649115859
當前提交 c586965e36
1 file changed
+1 -1
+1 -1
查看文件
@@ -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);
}