Fix addrlen size, by David Woodhouse.
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 11 Dec 2006 19:13:59 +0000 (19:13 +0000)
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 11 Dec 2006 19:13:59 +0000 (19:13 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2241 c046a42c-6fe2-441c-8c8c-71466251a162

linux-user/syscall.c

index 075460bae9e4d19e6684f3f2854e22187f15a62a..155297966e0d3171043a0ee113b4814517e82722 100644 (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));