Use right size value as input for splice.
authorWilfried Goesgens <dothebart@citadel.org>
Mon, 11 Jun 2012 08:48:23 +0000 (10:48 +0200)
committerWilfried Goesgens <dothebart@citadel.org>
Mon, 11 Jun 2012 08:48:23 +0000 (10:48 +0200)
libcitadel/lib/stringbuf.c

index 79b5f5d2f3ab2116e0d2cd6604bf3db6e60a0f5e..e1df8f4655ee9ea312fc5097b5c06d4271d1721a 100644 (file)
@@ -3998,7 +3998,7 @@ int FileRecvChunked(FDIOBuffer *FDB, const char **Err)
                      NULL, 
                      FDB->OtherFD,
                      &FDB->TotalSentAlready, 
-                     pipesize,
+                     FDB->PipeSize,
                      SPLICE_F_MORE | SPLICE_F_MOVE);
 
        if (sent == -1)