diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-01-06 11:53:14 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-01-06 11:53:14 +0000 |
commit | 51acae2613c8a38e9116dcca3237fa7ad0dd3a6c (patch) | |
tree | e143fddf1c0d7cf959ce30ff25f36f245d5a3117 /protocols/Tox/src/tox_transfer.cpp | |
parent | 9c66032fdc937f852771949c4b4c94ade67324d8 (diff) |
Tox: sending own status message
git-svn-id: http://svn.miranda-ng.org/main/trunk@11779 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_transfer.cpp')
-rw-r--r-- | protocols/Tox/src/tox_transfer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/Tox/src/tox_transfer.cpp b/protocols/Tox/src/tox_transfer.cpp index 127c0340af..03ebe2c467 100644 --- a/protocols/Tox/src/tox_transfer.cpp +++ b/protocols/Tox/src/tox_transfer.cpp @@ -219,7 +219,7 @@ void CToxProto::SendFileAsync(void* arg) uint8_t *data = (uint8_t*)mir_alloc(TOX_FILE_BLOCK_SIZE);
while (!feof(hFile) && fileProgress < fileSize && !transfer->isTerminated)
{
- // read file by block of 1mb
+ // read file by block of TOX_FILE_BLOCK_SIZE
size_t blockSize = min(chunkSize * (TOX_FILE_BLOCK_SIZE / chunkSize), fileSize - fileProgress);
if (fread(data, sizeof(uint8_t), blockSize, hFile) != blockSize)
{
|