diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-02-18 19:24:48 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-02-18 19:24:48 +0000 |
commit | 40453965455818d568bf90224b828c3f72b2606d (patch) | |
tree | 896abd9c140e7ccce2302937788ef14027d0142f /protocols/Tox/src/tox_avatars.cpp | |
parent | a8bb7b8d1f606b887c614d6200840fffb1bd48aa (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.cpp | 4 |
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);
|