[Mesa-dev] [PATCH] r600g/llvm: Add missing "%s" format string to fprintf.

Jon Severinsson jon at severinsson.net
Sun Aug 11 10:37:01 PDT 2013


This fixes a compilation warning with -Wformat-security.

CC: "9.2" <mesa-stable at lists.freedesktop.org>
---
 src/gallium/drivers/radeon/radeon_llvm_emit.c |    2 +-
 1 fil ändrad, 1 tillägg(+), 1 borttagning(-)

diff --git a/src/gallium/drivers/radeon/radeon_llvm_emit.c b/src/gallium/drivers/radeon/radeon_llvm_emit.c
index 1a4d4fdd..2dd7bf7b 100644
--- a/src/gallium/drivers/radeon/radeon_llvm_emit.c
+++ b/src/gallium/drivers/radeon/radeon_llvm_emit.c
@@ -124,7 +124,7 @@ unsigned radeon_llvm_compile(LLVMModuleRef M, struct radeon_llvm_binary *binary,
 	r = LLVMTargetMachineEmitToMemoryBuffer(tm, M, LLVMObjectFile, &err,
 								 &out_buffer);
 	if (r) {
-		fprintf(stderr, err);
+		fprintf(stderr, "%s", err);
 		FREE(err);
 		return 1;
 	}
-- 
1.7.10.4



More information about the mesa-dev mailing list