test-privserver: avoid -Wformat-security
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Fri, 7 Oct 2016 18:44:47 +0000 (19:44 +0100)
committerSimon McVittie <smcv@debian.org>
Thu, 13 Oct 2016 21:44:13 +0000 (22:44 +0100)
This is not a security vulnerability because it's test code that
should never be compiled in production.

Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
test/name-test/test-privserver.c

index 367c809..8bdd4f7 100644 (file)
@@ -95,7 +95,7 @@ main (int argc, char *argv[])
   server = dbus_server_listen ("unix:tmpdir=/tmp", &error);
 #endif
   if (!server)
-    die (error.message);
+    die ("%s", error.message);
   testdata->private_addr = dbus_server_get_address (server);
   fprintf (stderr, "test server listening on %s\n", testdata->private_addr);