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:
ths 2006-12-11 19:13:59 +00:00
parent 366dfc521e
commit 197ea35ab2

View File

@ -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));