summaryrefslogtreecommitdiff
path: root/toxcore/tox.c
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2015-03-13 12:40:21 -0400
committerirungentoo <irungentoo@gmail.com>2015-03-13 12:40:21 -0400
commit669975c226a385c1d0ffee8384abd776c7962d53 (patch)
tree52aee018d871fb87118c59c89d94e1509899c821 /toxcore/tox.c
parenteec1042695378c8e7fa2dc02970c79b9caddcf3d (diff)
tox_file_send_chunk() must now send data the same length as requested
in the requested chunk callback. For zero size transfers if the data sent is not the same length, the file is assumed to be done.
Diffstat (limited to 'toxcore/tox.c')
-rw-r--r--toxcore/tox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/tox.c b/toxcore/tox.c
index c527ce96..5dfac2c8 100644
--- a/toxcore/tox.c
+++ b/toxcore/tox.c
@@ -960,7 +960,7 @@ bool tox_file_send_chunk(Tox *tox, uint32_t friend_number, uint32_t file_number,
960 return 0; 960 return 0;
961 961
962 case -5: 962 case -5:
963 SET_ERROR_PARAMETER(error, TOX_ERR_FILE_SEND_CHUNK_TOO_LARGE); 963 SET_ERROR_PARAMETER(error, TOX_ERR_FILE_SEND_CHUNK_INVALID_LENGTH);
964 return 0; 964 return 0;
965 965
966 case -6: 966 case -6: