summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/tox_avatars.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-02-18 19:24:48 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-02-18 19:24:48 +0000
commit40453965455818d568bf90224b828c3f72b2606d (patch)
tree896abd9c140e7ccce2302937788ef14027d0142f /protocols/Tox/src/tox_avatars.cpp
parenta8bb7b8d1f606b887c614d6200840fffb1bd48aa (diff)
Tox:
- code cleaning - removed unneeded dependencies - posible fix for disconnect git-svn-id: http://svn.miranda-ng.org/main/trunk@12183 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_avatars.cpp')
-rw-r--r--protocols/Tox/src/tox_avatars.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/Tox/src/tox_avatars.cpp b/protocols/Tox/src/tox_avatars.cpp
index 6d52088b22..7ab5d4526d 100644
--- a/protocols/Tox/src/tox_avatars.cpp
+++ b/protocols/Tox/src/tox_avatars.cpp
@@ -35,7 +35,7 @@ void CToxProto::SetToxAvatar(std::tstring path, bool checkHash)
return;
}*/
- long length;
+ size_t length;
uint8_t *data;
FILE *hFile = _tfopen(path.c_str(), L"rb");
if (!hFile)
@@ -55,7 +55,7 @@ void CToxProto::SetToxAvatar(std::tstring path, bool checkHash)
}
data = (uint8_t*)mir_alloc(length);
- long read = fread(data, sizeof(uint8_t), length, hFile);
+ size_t read = fread(data, sizeof(uint8_t), length, hFile);
if (read != length)
{
fclose(hFile);