From 4582b7a70676f5a7e09608849b7d376c9a128f75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Tue, 8 Jun 2021 15:40:37 +0800 Subject: [PATCH] =?UTF-8?q?=E9=81=BF=E5=85=8D=E6=89=93=E5=8D=B0=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.c b/server.c index 405a29c..d34f676 100644 --- a/server.c +++ b/server.c @@ -272,8 +272,8 @@ static void execute_cgi(int client, const char *path, const char *method, const if(cnt > 0) { loff_t len = 0; loff_t offin = 0; - splice(cgi_output[0], &offin, client, &len, cnt, SPLICE_F_GIFT); - printf("cgi send %ld bytes\n", len); + splice(cgi_output[0], &offin, client, &len, (size_t)cnt, SPLICE_F_GIFT); + printf("cgi send %d bytes\n", len); } } else cannot_execute(client); close(cgi_output[0]);