radv: Fix -Wformat-security issue
authorAlex Smith <asmith@feralinteractive.com>
Mon, 30 Oct 2017 08:38:14 +0000 (08:38 +0000)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 30 Oct 2017 09:58:56 +0000 (10:58 +0100)
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=103513
Fixes: de889794134e ("radv: Implement VK_AMD_shader_info")
Signed-off-by: Alex Smith <asmith@feralinteractive.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/vulkan/radv_shader.c

index c9edb28..9162612 100644 (file)
@@ -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);
 }