aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Waugh <twaugh@redhat.com>2015-02-24 12:34:14 +0000
committerTim Waugh <twaugh@redhat.com>2015-02-24 12:34:14 +0000
commit14206b3c56f426a77d0138583e8f9d999f186afa (patch)
tree3054e28568a5f6190fba2b948e7aa58b06c6345e
parent52a18150a7a8f2802000136c35005bc83b5b0855 (diff)
downloadtigervnc-14206b3c56f426a77d0138583e8f9d999f186afa.tar.gz
tigervnc-14206b3c56f426a77d0138583e8f9d999f186afa.zip
Avoid warning when compiling with gcc's -Wformat-security option.
-rw-r--r--vncviewer/vncviewer.cxx2
1 files changed, 1 insertions, 1 deletions
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;
}