summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsin <sin@2f30.org>2014-09-13 16:32:30 +0100
committersin <sin@2f30.org>2014-09-13 16:32:30 +0100
commitd0786e408d07d0e4dbd6c98b23522399e5b1b34a (patch)
tree7d9b8a6562bcdb90c58f5503394f9a445b49e129
parentdb7a657ac9422ba10bc52a19351ce62c956e5907 (diff)
text_out should be in the same dir as text_in
Thanks unknown person.
-rw-r--r--ratatox.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ratatox.c b/ratatox.c
index 52f9343..1abe4f4 100644
--- a/ratatox.c
+++ b/ratatox.c
@@ -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");