test-privserver: avoid -Wformat-security

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>
This commit is contained in:
Simon McVittie 2016-10-07 19:44:47 +01:00 committed by Simon McVittie
parent cd4e34408e
commit 28eb0f9004

View 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);