From f55852c2ea6f4217eb3527071be8278d993a912f Mon Sep 17 00:00:00 2001 From: Vadim Troshchinskiyddd Date: Fri, 7 Oct 2016 13:12:39 +0200 Subject: Fix nxproxy hostname parsing. Fixes ArcticaProject/nx-libs#207 Closes ArcticaProject/nx-libs#216 --- nxcomp/Loop.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'nxcomp') diff --git a/nxcomp/Loop.cpp b/nxcomp/Loop.cpp index a690042d2..7e77bc2a9 100644 --- a/nxcomp/Loop.cpp +++ b/nxcomp/Loop.cpp @@ -9367,10 +9367,10 @@ int ParseCommandLineOptions(int argc, const char **argv) // command line at the connecting side. // - char *cHost; - long cPort; + char cHost[DEFAULT_STRING_LENGTH] = { '\0' }; + long cPort = 0; - if (connectSocket.getTCPHostAndPort(&cHost, &cPort) && (ParseHostOption(nextArg, cHost, cPort) > 0)) + if (ParseHostOption(nextArg, cHost, cPort) > 0) { // // Assume port is at a proxied display offset. -- cgit v1.2.3