tUse PIPE_BUF instead of BUFSIZ for fifo reads - ratox - FIFO based tox client
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit a29177cc6550f35a542dfc0c21472096ece09212
 (DIR) parent 388273ecb3c78e742186f3dd2d3227787b407750
 (HTM) Author: sin <sin@2f30.org>
       Date:   Mon, 29 Sep 2014 00:16:18 +0100
       
       Use PIPE_BUF instead of BUFSIZ for fifo reads
       
       Diffstat:
         M ratox.c                             |       4 ++--
       
       1 file changed, 2 insertions(+), 2 deletions(-)
       ---
 (DIR) diff --git a/ratox.c b/ratox.c
       t@@ -164,7 +164,7 @@ static Tox *tox;
        static Tox_Options toxopt;
        static uint8_t *passphrase;
        static uint32_t pplen;
       -static uint8_t toilet[BUFSIZ];
       +static uint8_t toilet[PIPE_BUF];
        static sig_atomic_t running = 1;
        static int ipv6;
        static int tcpflag;
       t@@ -1058,7 +1058,7 @@ setstatus(void *data)
        static void
        sendfriendreq(void *data)
        {
       -        char buf[BUFSIZ], *p;
       +        char buf[PIPE_BUF], *p;
                char *msg = "ratox is awesome!";
                uint8_t id[TOX_FRIEND_ADDRESS_SIZE];
                ssize_t n;