Module: Mesa
Branch: master
Commit: 134a40d2a67fa8e76b0b101e2fcaa63e80e23056
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=134a40d2a67fa8e76b0b101e2fcaa63e80e23056

Author: Alex Smith <[email protected]>
Date:   Mon Oct 30 08:38:14 2017 +0000

radv: Fix -Wformat-security issue

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=103513
Fixes: de889794134e ("radv: Implement VK_AMD_shader_info")
Signed-off-by: Alex Smith <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Reviewed-by: Samuel Pitoiset <[email protected]>

---

 src/amd/vulkan/radv_shader.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/amd/vulkan/radv_shader.c b/src/amd/vulkan/radv_shader.c
index c9edb28ba2..9162612284 100644
--- a/src/amd/vulkan/radv_shader.c
+++ b/src/amd/vulkan/radv_shader.c
@@ -680,7 +680,7 @@ radv_shader_dump_stats(struct radv_device *device,
        generate_shader_stats(device, variant, stage, buf);
 
        fprintf(file, "\n%s:\n", radv_get_shader_name(variant, stage));
-       fprintf(file, buf->buf);
+       fprintf(file, "%s", buf->buf);
 
        _mesa_string_buffer_destroy(buf);
 }

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to