From 14206b3c56f426a77d0138583e8f9d999f186afa Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Tue, 24 Feb 2015 12:34:14 +0000 Subject: [PATCH] Avoid warning when compiling with gcc's -Wformat-security option. --- vncviewer/vncviewer.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vncviewer/vncviewer.cxx b/vncviewer/vncviewer.cxx index 332a81c1..95e19aea 100644 --- a/vncviewer/vncviewer.cxx +++ b/vncviewer/vncviewer.cxx @@ -330,7 +330,7 @@ interpretViaParam(char *remoteHost, int *remotePort, int localPort) snprintf(vncServerName, VNCSERVERNAMELEN, "localhost::%d", localPort); vncServerName[VNCSERVERNAMELEN - 1] = '\0'; - vlog.error(vncServerName); + vlog.error("%s", vncServerName); return 0; } -- 2.39.5