From 4d6cd035259f3c9debea6844e777febe33f4fd48 Mon Sep 17 00:00:00 2001 From: sin Date: Mon, 15 Sep 2014 12:27:15 +0100 Subject: Just a hack for now, strip the training newline if any --- ratatox.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ratatox.c b/ratatox.c index f23691d..3b9a1e9 100644 --- a/ratatox.c +++ b/ratatox.c @@ -365,6 +365,8 @@ again: perror("read"); exit(1); } + if (buf[n - 1] == '\n') + n--; tox_send_message(tox, f->fid, buf, n); } -- cgit v1.2.3