From f914348f72eaac50d39f728a641d05ef1fb1150f Mon Sep 17 00:00:00 2001 From: sin Date: Wed, 1 Oct 2014 16:39:54 +0100 Subject: Receiving calls works! --- ratox.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ratox.c') 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) { -- cgit v1.2.3