aboutsummaryrefslogtreecommitdiff
path: root/nxcomp
diff options
context:
space:
mode:
Diffstat (limited to 'nxcomp')
-rw-r--r--nxcomp/Loop.cpp6
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.