mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-23 19:49:43 +00:00
Fix addrlen size, by David Woodhouse.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2241 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
366dfc521e
commit
197ea35ab2
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user