mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
radv: drop unnecessary memset() before snprintf()
snprintf() always terminates the string. Signed-off-by: Eric Engestrom <eric.engestrom@intel.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
parent
451f030c06
commit
29e8f15bdc
1 changed files with 0 additions and 1 deletions
|
|
@ -1343,7 +1343,6 @@ void radv_GetPhysicalDeviceProperties2(
|
|||
memset(driver_props->driverName, 0, VK_MAX_DRIVER_NAME_SIZE_KHR);
|
||||
strcpy(driver_props->driverName, "radv");
|
||||
|
||||
memset(driver_props->driverInfo, 0, VK_MAX_DRIVER_INFO_SIZE_KHR);
|
||||
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