diff options
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)
{
|