From e9800f7b8eb7052c4e799c3d3307a233c7b3e176 Mon Sep 17 00:00:00 2001 From: aunsane Date: Fri, 15 Sep 2017 22:07:04 +0300 Subject: Tox: fix setting proxy host --- protocols/Tox/src/tox_core.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/Tox/src/tox_core.cpp') diff --git a/protocols/Tox/src/tox_core.cpp b/protocols/Tox/src/tox_core.cpp index 9a2abf7e0f..ab2e4ceb1d 100644 --- a/protocols/Tox/src/tox_core.cpp +++ b/protocols/Tox/src/tox_core.cpp @@ -20,14 +20,14 @@ Tox_Options* CToxProto::GetToxOptions() if (nlus.proxyType == PROXYTYPE_HTTP || nlus.proxyType == PROXYTYPE_HTTPS) { debugLogA(__FUNCTION__": setting http user proxy config"); options->proxy_type = TOX_PROXY_TYPE_HTTP; - mir_strcpy((char*)&options->proxy_host[0], nlus.szProxyServer); + options->proxy_host = nlus.szProxyServer; options->proxy_port = nlus.wProxyPort; } if (nlus.proxyType == PROXYTYPE_SOCKS4 || nlus.proxyType == PROXYTYPE_SOCKS5) { debugLogA(__FUNCTION__": setting socks user proxy config"); options->proxy_type = TOX_PROXY_TYPE_SOCKS5; - mir_strcpy((char*)&options->proxy_host[0], nlus.szProxyServer); + options->proxy_host = nlus.szProxyServer; options->proxy_port = nlus.wProxyPort; } } -- cgit v1.2.3