diff options
author | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2006-12-11 19:13:59 +0000 |
---|---|---|
committer | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2006-12-11 19:13:59 +0000 |
commit | 197ea35ab2175f7faaee4cb416332dc28db5bbbe (patch) | |
tree | 68b99bdc484461928fa120b3e50fec0bde3f79a3 /linux-user/syscall.c | |
parent | 366dfc521e03c1d02c69cdb09b1565dbae97ebd0 (diff) |
Fix addrlen size, by David Woodhouse.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2241 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'linux-user/syscall.c')
-rw-r--r-- | linux-user/syscall.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 075460bae9..155297966e 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -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)); |