summaryrefslogtreecommitdiff
path: root/protocols/Tox/src
diff options
context:
space:
mode:
authoraunsane <aunsane@gmail.com>2017-09-15 22:07:04 +0300
committeraunsane <aunsane@gmail.com>2017-09-15 22:07:37 +0300
commite9800f7b8eb7052c4e799c3d3307a233c7b3e176 (patch)
treea55a9e84402b714fff4e21d970efe9675d5c5659 /protocols/Tox/src
parente7c55a0055f63c12ccaf1bf62056462fe055b94a (diff)
Tox: fix setting proxy host
Diffstat (limited to 'protocols/Tox/src')
-rw-r--r--protocols/Tox/src/tox_core.cpp4
1 files changed, 2 insertions, 2 deletions
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;
}
}