summaryrefslogtreecommitdiff
path: root/src/modules/netlib/netlibautoproxy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/netlib/netlibautoproxy.cpp')
-rw-r--r--src/modules/netlib/netlibautoproxy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/netlib/netlibautoproxy.cpp b/src/modules/netlib/netlibautoproxy.cpp
index 5f3c1280de..356c25fc8c 100644
--- a/src/modules/netlib/netlibautoproxy.cpp
+++ b/src/modules/netlib/netlibautoproxy.cpp
@@ -176,7 +176,7 @@ bool NetlibGetIeProxyConn(NetlibConnection *nlc, bool forceHttps)
mir_snprintf(szUrl, SIZEOF(szUrl), "http://%s", nlc->nloc.szHost);
else
{
- mir_snprintf(szUrl, SIZEOF(szUrl), "%s", nlc->nloc.szHost);
+ strncpy_s(szUrl, nlc->nloc.szHost, _TRUNCATE);
noHttp = true;
}