aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)