summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsin <sin@2f30.org>2014-10-01 16:39:54 +0100
committersin <sin@2f30.org>2014-10-01 16:39:54 +0100
commitf914348f72eaac50d39f728a641d05ef1fb1150f (patch)
treecdf4dfa9ec3af8a152f2b4950a3651ca384d5e6a
parent9a1f50c48071f8f8cdf5e537a9c01276d7e02afa (diff)
Receiving calls works!
-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) {