test: fix a format-security error
authorLubomir Rintel <lkundrak@v3.sk>
Wed, 26 Aug 2015 08:56:26 +0000 (10:56 +0200)
committerLubomir Rintel <lkundrak@v3.sk>
Wed, 26 Aug 2015 08:57:09 +0000 (10:57 +0200)
test-dispatcher-envp.c: In function 'test_generic':
test-dispatcher-envp.c:507:3: error: format not a string literal and no format arguments [-Werror=format-security]

callouts/tests/test-dispatcher-envp.c

index 420f507..27f088f 100644 (file)
@@ -504,7 +504,7 @@ test_generic (const char *file, const char *override_vpn_ip_iface)
        g_assert ((!denv && error_message) || (denv && !error_message));
 
        if (error_message)
-               g_warning (error_message);
+               g_warning ("%s", error_message);
 
        /* Print out environment for now */
 #ifdef DEBUG