summaryrefslogtreecommitdiff
path: root/protocols/Tox/src
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Tox/src')
-rw-r--r--protocols/Tox/src/tox_profile.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/Tox/src/tox_profile.cpp b/protocols/Tox/src/tox_profile.cpp
index 7ac4516cde..29c84fb040 100644
--- a/protocols/Tox/src/tox_profile.cpp
+++ b/protocols/Tox/src/tox_profile.cpp
@@ -90,7 +90,7 @@ bool CToxProto::LoadToxProfile()
void CToxProto::SaveToxProfile()
{
- /*size_t size = 0;
+ size_t size = 0;
uint8_t *data = NULL;
{
@@ -113,11 +113,11 @@ void CToxProto::SaveToxProfile()
data = (uint8_t*)mir_calloc(size);
tox_save(tox, data);
}
- }*/
+ }
- size_t size = tox_size(tox);
+ /*size_t size = tox_size(tox);
uint8_t *data = (uint8_t*)mir_calloc(size);
- tox_save(tox, data);
+ tox_save(tox, data);*/
std::tstring profilePath = GetToxProfilePath();
FILE *profile = _tfopen(profilePath.c_str(), _T("wb"));