Commit 197ea35ab2175f7faaee4cb416332dc28db5bbbe

Authored by ths
1 parent 366dfc52

Fix addrlen size, by David Woodhouse.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2241 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 1 additions and 1 deletions
linux-user/syscall.c
... ... @@ -841,7 +841,7 @@ static long do_accept(int fd, target_ulong target_addr,
841 841 target_ulong target_addrlen)
842 842 {
843 843 socklen_t addrlen = tget32(target_addrlen);
844   - void *addr = alloca(target_addrlen);
  844 + void *addr = alloca(addrlen);
845 845 long ret;
846 846  
847 847 ret = get_errno(accept(fd, addr, &addrlen));
... ...