ratox

FIFO based tox client
git clone git://git.2f30.org/ratox
Log | Files | Refs | README | LICENSE

commit 1c3f35ffeb032ae4e8ce939eca8e5e9466b046a9
parent 9009ccdb0dc325e9db12ffffec7b752dce48469c
Author: pranomostro <pranomestro@gmail.com>
Date:   Tue, 22 Nov 2016 17:56:50 +0100

Fix issue that prevents correct sending of INCOMPLETE buffers.

f->av.state & INCOMPLETE was evaluated as 8, which made the third test always false.

Diffstat:
Mratox.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ratox.c b/ratox.c @@ -495,7 +495,7 @@ sendfriendcalldata(struct friend *f) return; } else if (n < 0) { return; - } else if (n == (framesize * sizeof(int16_t) - (f->av.state & INCOMPLETE) * f->av.n)) { + } else if (n == (framesize * sizeof(int16_t) - (f->av.state & INCOMPLETE ? f->av.n : 0))) { f->av.state &= ~INCOMPLETE; f->av.n = 0; } else {