gio/tests: Fix build with -Werror=format-security
authorRico Tzschichholz <ricotz@t-online.de>
Sat, 27 Oct 2012 10:12:29 +0000 (12:12 +0200)
committerRico Tzschichholz <ricotz@t-online.de>
Sat, 27 Oct 2012 10:12:29 +0000 (12:12 +0200)
gio/tests/gdbus-peer-object-manager.c

index 3689b93..89537cc 100644 (file)
@@ -221,7 +221,7 @@ setup (Test *test,
   if (socketpair (AF_UNIX, SOCK_STREAM, 0, pair) < 0)
     {
       g_set_error (&error, G_IO_ERROR, g_io_error_from_errno (errno),
-                   g_strerror (errno));
+                   "%s", g_strerror (errno));
       g_assert_no_error (error);
     }