From: Nishi Date: Thu, 19 Sep 2024 12:51:19 +0000 (+0000) Subject: fix select X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=1727b8b4c30696558a3f2ad7c4a6c324a2a51822;p=tewi.git fix select git-svn-id: file:///raid/svn-personal/tewi/trunk@85 8739d7e6-ffea-ec47-b151-bdff447c6205 --- diff --git a/Server/server.c b/Server/server.c index b47ca38..b801dd6 100644 --- a/Server/server.c +++ b/Server/server.c @@ -764,7 +764,7 @@ void tw_server_loop(void) { } tv.tv_sec = 1; tv.tv_usec = 0; - int ret = select(FD_SETSIZE, &fdset, NULL, NULL, &tv); + int ret = select(sockcount, &fdset, NULL, NULL, &tv); if(ret == -1) { #ifndef __MINGW32__ cm_log("Server", "Select failure: %s", strerror(errno));