diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-05-29 21:33:17 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-05-29 21:33:17 +0000 |
commit | a66281d8453edde56145e032e8d38db91580ba08 (patch) | |
tree | efdddb6f765cf020502eed9139dab6767adb5d0b /protocols/Tox/src/tox_search.cpp | |
parent | 6c5621e08b28ff3c3db26726aafd827d354d6934 (diff) |
Tox:
- reworked code related with address/public key
- added tox_add_tcp_relay to bootstrap
- updated tox core
- version bump
git-svn-id: http://svn.miranda-ng.org/main/trunk@13900 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_search.cpp')
-rw-r--r-- | protocols/Tox/src/tox_search.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/Tox/src/tox_search.cpp b/protocols/Tox/src/tox_search.cpp index c9962d90a0..7b57f54eb0 100644 --- a/protocols/Tox/src/tox_search.cpp +++ b/protocols/Tox/src/tox_search.cpp @@ -51,7 +51,7 @@ void CToxProto::SearchByNameAsync(void *arg) char fileName[MAX_PATH];
mir_strcpy(fileName, VARS(TOX_INI_PATH));
- char *section, sections[MAX_PATH], value[MAX_PATH];
+ char *section, sections[MAX_PATH], value[TOX_PUBLIC_KEY_SIZE * 2];
GetPrivateProfileSectionNamesA(sections, SIZEOF(sections), fileName);
section = sections;
while (*section != NULL)
@@ -61,7 +61,7 @@ void CToxProto::SearchByNameAsync(void *arg) GetPrivateProfileStringA(section, "Domain", NULL, value, SIZEOF(value), fileName);
ptrA dnsDomain(mir_strdup(value));
GetPrivateProfileStringA(section, "PubKey", NULL, value, SIZEOF(value), fileName);
- ToxBinAddress dnsPubKey(value);
+ ToxBinAddress dnsPubKey = value;
if (domain == NULL || mir_strcmpi(domain, dnsDomain) == 0)
{
|