[glib] gio/tests: Fix for -Werror=format-security



commit 38a00cec67709e5c154398e8cbb8f15a15bed583
Author: Rico Tzschichholz <ricotz t-online de>
Date:   Mon Nov 21 23:06:15 2011 +0100

    gio/tests: Fix for -Werror=format-security

 gio/tests/test-pipe-unix.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/tests/test-pipe-unix.c b/gio/tests/test-pipe-unix.c
index a3fdba4..f4e07a4 100644
--- a/gio/tests/test-pipe-unix.c
+++ b/gio/tests/test-pipe-unix.c
@@ -64,7 +64,7 @@ test_pipe (GInputStream  **is,
       int e = errno;
 
       g_set_error (error, G_IO_ERROR, g_io_error_from_errno (e),
-                   g_strerror (e));
+                   "%s", g_strerror (e));
       return FALSE;
     }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]