ttext_out should be in the same dir as text_in - ratox - FIFO based tox client
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit d0786e408d07d0e4dbd6c98b23522399e5b1b34a
(DIR) parent db7a657ac9422ba10bc52a19351ce62c956e5907
(HTM) Author: sin <sin@2f30.org>
Date: Sat, 13 Sep 2014 16:32:30 +0100
ttext_out should be in the same dir as text_in
Thanks unknown person.
Diffstat:
M ratatox.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
(DIR) diff --git a/ratatox.c b/ratatox.c
t@@ -166,8 +166,7 @@ cb_friend_message(Tox *tox, int32_t fid, const uint8_t *data, uint16_t len, void
TAILQ_FOREACH(f, &friendhead, entry) {
if (f->fid == fid) {
- snprintf(path, sizeof(path), "%s:%d/text_out",
- f->namestr, f->fid);
+ snprintf(path, sizeof(path), "%s/text_out", f->idstr);
fp = fopen(path, "a");
if (!fp) {
perror("fopen");