提交 197ea35a 编写于 作者: T ths

Fix addrlen size, by David Woodhouse.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2241 c046a42c-6fe2-441c-8c8c-71466251a162
上级 366dfc52
......@@ -841,7 +841,7 @@ static long do_accept(int fd, target_ulong target_addr,
target_ulong target_addrlen)
{
socklen_t addrlen = tget32(target_addrlen);
void *addr = alloca(target_addrlen);
void *addr = alloca(addrlen);
long ret;
ret = get_errno(accept(fd, addr, &addrlen));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册