mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 23:30:10 +01:00
radv: replace memset()+strcpy() with snprintf()
Just like the next line :) Signed-off-by: Eric Engestrom <eric.engestrom@intel.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
parent
29e8f15bdc
commit
f7224014df
1 changed files with 1 additions and 3 deletions
|
|
@ -1340,9 +1340,7 @@ void radv_GetPhysicalDeviceProperties2(
|
|||
(VkPhysicalDeviceDriverPropertiesKHR *) ext;
|
||||
|
||||
driver_props->driverID = VK_DRIVER_ID_MESA_RADV_KHR;
|
||||
memset(driver_props->driverName, 0, VK_MAX_DRIVER_NAME_SIZE_KHR);
|
||||
strcpy(driver_props->driverName, "radv");
|
||||
|
||||
snprintf(driver_props->driverName, VK_MAX_DRIVER_NAME_SIZE_KHR, "radv");
|
||||
snprintf(driver_props->driverInfo, VK_MAX_DRIVER_INFO_SIZE_KHR,
|
||||
"Mesa " PACKAGE_VERSION MESA_GIT_SHA1
|
||||
" (LLVM " MESA_LLVM_VERSION_STRING ")");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue