diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2016-12-14 10:57:39 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2016-12-14 10:57:39 +0100 |
commit | e466a9387d4db49784276b9b0eabf8f49f01b87f (patch) | |
tree | e6b9d34c37ef98f7fd335f05c0b717e61bf5853e | |
parent | 2b8f59261dd6880469c8cfcf64cafcbca55b9e2d (diff) | |
parent | 77188865e24bd750f76785d6bbe2f1851c7466a8 (diff) | |
download | nx-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.cpp | 4 |
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) |