index
:
ratox
master
Mirror of https://git.2f30.org/ratox
Gitolite user
summary
refs
log
tree
commit
diff
log msg
author
committer
range
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
Diffstat
-rw-r--r--
ratatox.c
2
1 files changed, 2 insertions, 0 deletions
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);
}