From: Mateusz Moscicki Date: Wed, 30 May 2018 11:31:21 +0000 (+0200) Subject: Revert "crash-pipe: Fix write the coredump to the file" X-Git-Tag: accepted/tizen/unified/20180614.150754~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6490e79cc9a0ae99f5bca5534f204343dcc733ce;p=platform%2Fcore%2Fsystem%2Fcrash-worker.git Revert "crash-pipe: Fix write the coredump to the file" This reverts commit 70c1372b5a85a64d5ea7c5bb20b99429213942be. Change-Id: I553b4c6ef2e5aa9cdc80e4d58ecd318dc0a2d532 --- diff --git a/src/crash-pipe/crash-pipe.c b/src/crash-pipe/crash-pipe.c index e6759c3..1ba2f3a 100644 --- a/src/crash-pipe/crash-pipe.c +++ b/src/crash-pipe/crash-pipe.c @@ -32,7 +32,6 @@ #include #include #include -#include enum { OPT_HELP, @@ -75,7 +74,7 @@ static int copy_fd_splice(int in, int out) ssize_t s; _Bool copied_data = 0; - const size_t max_splice = SIZE_MAX; + const ssize_t max_splice = SSIZE_MAX; do { s = splice(in, NULL, out, NULL, max_splice, SPLICE_F_MOVE);