From 5c74378c297738883cecdd881b45621720016e80 Mon Sep 17 00:00:00 2001 From: Sebastien Binet Date: Tue, 11 Aug 2015 21:12:19 +0200 Subject: [PATCH] examples/cpkg: fix c-compilation warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Compiling with `-Wformat-security` resulted in: ```sh gopy/_examples/cpkg/cpkg.go: In function ‘cpkg_printf’: gopy/_examples/cpkg/cpkg.go:11:2: warning: format not a string literal and no format arguments [-Wformat-security] ``` This CL is an attempted at fixing that. --- _examples/cpkg/cpkg.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_examples/cpkg/cpkg.go b/_examples/cpkg/cpkg.go index 4c973f9..65b2c6b 100644 --- a/_examples/cpkg/cpkg.go +++ b/_examples/cpkg/cpkg.go @@ -8,7 +8,7 @@ package cpkg //#include //#include //void cpkg_printf(const char *str) { -// fprintf(stdout, str); +// fprintf(stdout, "%s", str); // fflush(stdout); //} import "C"