aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2016-12-14 10:57:39 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2016-12-14 10:57:39 +0100
commite466a9387d4db49784276b9b0eabf8f49f01b87f (patch)
treee6b9d34c37ef98f7fd335f05c0b717e61bf5853e
parent2b8f59261dd6880469c8cfcf64cafcbca55b9e2d (diff)
parent77188865e24bd750f76785d6bbe2f1851c7466a8 (diff)
downloadnx-libs-e466a9387d4db49784276b9b0eabf8f49f01b87f.tar.gz
nx-libs-e466a9387d4db49784276b9b0eabf8f49f01b87f.tar.bz2
nx-libs-e466a9387d4db49784276b9b0eabf8f49f01b87f.zip
Merge branch 'theqvd-fix-accept-host-message' into 3.6.x
Attributes GH PR #300: https://github.com/ArcticaProject/nx-libs/pull/300
-rw-r--r--nxcomp/Loop.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/nxcomp/Loop.cpp b/nxcomp/Loop.cpp
index 09ba6f952..c566aa2d1 100644
--- a/nxcomp/Loop.cpp
+++ b/nxcomp/Loop.cpp
@@ -6685,11 +6685,11 @@ int WaitForRemote(ChannelEndPoint &socketAddress)
goto WaitForRemoteError;
}
- strcpy(hostLabel, "any host");
+ snprintf(hostLabel, sizeof(hostLabel), "'%s'", acceptHost);
}
else
{
- snprintf(hostLabel, sizeof(hostLabel), "'%s'", acceptHost);
+ strcpy(hostLabel, "any host");
}
if (loopbackBind)