diff options
author | Vadim Troshchinskiyddd <vtroshchinskiy@qindel.com> | 2016-10-07 13:12:39 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2016-10-07 22:05:03 +0200 |
commit | f55852c2ea6f4217eb3527071be8278d993a912f (patch) | |
tree | 045170b941e70d06d47e254dd3c8a346f77c4d1a /nxcomp | |
parent | 85f5fdfd28dd7ba024586a62cc7cbba2d1b9e027 (diff) | |
download | nx-libs-f55852c2ea6f4217eb3527071be8278d993a912f.tar.gz nx-libs-f55852c2ea6f4217eb3527071be8278d993a912f.tar.bz2 nx-libs-f55852c2ea6f4217eb3527071be8278d993a912f.zip |
Fix nxproxy hostname parsing.
Fixes ArcticaProject/nx-libs#207
Closes ArcticaProject/nx-libs#216
Diffstat (limited to 'nxcomp')
-rw-r--r-- | nxcomp/Loop.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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. |