diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2015-03-19 06:14:25 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2015-03-19 06:14:25 +0000 |
commit | 4a5aa5c174d51df69d9e683abc5fa3b8ad182048 (patch) | |
tree | e739018952b8a40f93c2190ed6cdcdb71f29a3b9 /protocols/Tox/src | |
parent | 3364fd6b8bdc21692805302a4333e49b44590b2c (diff) |
one more attempt encrypt tox profile
git-svn-id: http://svn.miranda-ng.org/main/trunk@12432 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src')
-rw-r--r-- | protocols/Tox/src/tox_profile.cpp | 8 |
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"));
|