ratox

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

commit f7f067f23e6daf13a727fa81759e8dd72b167bb2
parent 688f6b04c0d6e818bf8c2c3a38e202ca39320669
Author: sin <sin@2f30.org>
Date:   Mon, 22 Sep 2014 16:06:30 +0100

Remeber to truncate datafile in datasave() in case it shrinks

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

diff --git a/ratox.c b/ratox.c @@ -605,7 +605,7 @@ datasave(void) uint8_t *data; int fd; - fd = open(DATAFILE, O_WRONLY | O_CREAT , 0644); + fd = open(DATAFILE, O_WRONLY | O_TRUNC | O_CREAT , 0644); if (fd < 0) { perror("open"); exit(EXIT_FAILURE);