未验证 提交 d948dba4 编写于 作者: H heyuanjie87 提交者: GitHub

update select.c

上级 fd209cb8
......@@ -34,7 +34,7 @@ static void fdzero(fd_set *set, int nfds)
int n;
m = (fd_mask*)set;
for (n = 0; n < nfds; n += sizeof(fd_mask))
for (n = 0; n < nfds; n += (sizeof(fd_mask) * 8))
{
rt_memset(m, 0, sizeof(fd_mask));
m ++;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册