Commit 197ea35a authored by ths's avatar ths
Browse files

Fix addrlen size, by David Woodhouse.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2241 c046a42c-6fe2-441c-8c8c-71466251a162
parent 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% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment