From 63471c9de0892f32f237c97f081e14f66a2365ab Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Tue, 3 Mar 2015 16:49:50 +0100 Subject: [PATCH] Move about text constant so the compiler can analyse it --- vncviewer/vncviewer.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/vncviewer/vncviewer.cxx b/vncviewer/vncviewer.cxx index 936a22a0..0b2de53e 100644 --- a/vncviewer/vncviewer.cxx +++ b/vncviewer/vncviewer.cxx @@ -79,10 +79,6 @@ using namespace network; using namespace rfb; using namespace std; -static const char _aboutText[] = N_("TigerVNC Viewer %d-bit v%s\n" - "Built on: %s\n" - "Copyright (C) 1999-%d TigerVNC Team and many others (see README.txt)\n" - "See http://www.tigervnc.org for information on TigerVNC."); static char aboutText[1024]; char vncServerName[VNCSERVERNAMELEN] = { '\0' }; @@ -382,7 +378,11 @@ int main(int argc, char** argv) textdomain(PACKAGE_NAME); // Generate the about string now that we get the proper translation - snprintf(aboutText, sizeof(aboutText), _aboutText, + snprintf(aboutText, sizeof(aboutText), + _("TigerVNC Viewer %d-bit v%s\n" + "Built on: %s\n" + "Copyright (C) 1999-%d TigerVNC Team and many others (see README.txt)\n" + "See http://www.tigervnc.org for information on TigerVNC."), (int)sizeof(size_t)*8, PACKAGE_VERSION, BUILD_TIMESTAMP, 2015); -- 2.39.5