summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ratox.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ratox.c b/ratox.c
index 8c8b6a8..48c6bc5 100644
--- a/ratox.c
+++ b/ratox.c
@@ -480,6 +480,7 @@ cbcalldata(ToxAv *av, int32_t cnum, int16_t *data, int len, void *udata)
return;
buf = (uint8_t *)data;
+ len *= 2;
while (len > 0) {
n = write(f->fd[FCALL_OUT], &buf[wrote], len);
if (n < 0) {