mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 17:20:10 +01:00
anv: don't use strcpy for copying strings
CID: 1358935 Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
This commit is contained in:
parent
226fae7849
commit
d1bd731e30
1 changed files with 2 additions and 1 deletions
|
|
@ -895,7 +895,8 @@ void anv_GetPhysicalDeviceProperties(
|
|||
.sparseProperties = {0}, /* Broadwell doesn't do sparse. */
|
||||
};
|
||||
|
||||
strcpy(pProperties->deviceName, pdevice->name);
|
||||
strncpy(pProperties->deviceName, pdevice->name,
|
||||
VK_MAX_PHYSICAL_DEVICE_NAME_SIZE);
|
||||
memcpy(pProperties->pipelineCacheUUID,
|
||||
pdevice->pipeline_cache_uuid, VK_UUID_SIZE);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue