f transfers short update

This commit is contained in:
ingvar1995 2016-06-18 00:43:30 +03:00
parent 23b045070a
commit 7bdc506ff2
3 changed files with 13 additions and 9 deletions

View file

@ -259,7 +259,7 @@ class ReceiveToBuffer(FileTransfer):
self.state = TOX_FILE_TRANSFER_STATE['FINISHED']
self.signal()
else:
data = bytearray(data)
data = ''.join(chr(x) for x in data)
l = len(data)
if self._data_size < position:
self._data += ('\0' * (position - self._data_size))