summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/tox_avatars.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Tox/src/tox_avatars.cpp')
-rw-r--r--protocols/Tox/src/tox_avatars.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/Tox/src/tox_avatars.cpp b/protocols/Tox/src/tox_avatars.cpp
index 8f4410c5f3..a19f47faf9 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;
}*/
- int length;
+ long length;
uint8_t *data;
FILE *hFile = _tfopen(path.c_str(), L"rb");
if (!hFile)
@@ -55,8 +55,8 @@ void CToxProto::SetToxAvatar(std::tstring path, bool checkHash)
}
data = (uint8_t*)mir_alloc(length);
- size_t readed = fread(data, sizeof(uint8_t), length, hFile);
- if (readed != length)
+ long read = fread(data, sizeof(uint8_t), length, hFile);
+ if (read != length)
{
fclose(hFile);
debugLogA("CToxProto::SetToxAvatar: failed to read avatar file");