From 4900c4cf01edf0a6d2ee4113342e06cbfa6e6701 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: Fri, 4 Mar 2022 19:41:27 +0800 Subject: [PATCH] fix accept --- server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.c b/server.c index 4326f91..4c72f1c 100644 --- a/server.c +++ b/server.c @@ -495,7 +495,7 @@ static int startupunix(char *path) { #if __APPLE__ uname.sun_len = strlen(path)+1; // including null #else - int sun_len = strlen(path)+1; // including null + int sun_len = strlen(path); #endif if(httpd < 0) error_die("unix socket"); unlink(path); // in case it already exists