From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GtYDp-0007Bl-9u for qemu-devel@nongnu.org; Sun, 10 Dec 2006 18:36:41 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GtYDn-0007BZ-VJ for qemu-devel@nongnu.org; Sun, 10 Dec 2006 18:36:40 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GtYDn-0007BW-Rx for qemu-devel@nongnu.org; Sun, 10 Dec 2006 18:36:39 -0500 Received: from [213.146.154.40] (helo=pentafluge.infradead.org) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GtYDn-0000WP-LA for qemu-devel@nongnu.org; Sun, 10 Dec 2006 18:36:39 -0500 Received: from shinybook.infradead.org ([81.187.2.165]) by pentafluge.infradead.org with esmtpsa (Exim 4.63 #1 (Red Hat Linux)) id 1GtYDm-0004uK-32 for qemu-devel@nongnu.org; Sun, 10 Dec 2006 23:36:38 +0000 From: David Woodhouse Content-Type: text/plain Date: Sun, 10 Dec 2006 23:36:36 +0000 Message-Id: <1165793796.3650.22.camel@shinybook.infradead.org> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH] do_accept() fix. Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org With this on top of the NPTL support I posted yesterday, I finally have nspluginwrapper running the i386 flash plugin inside firefox on my PPC laptop -- to a certain extent. Index: linux-user/syscall.c =================================================================== RCS file: /cvsroot/qemu/qemu/linux-user/syscall.c,v retrieving revision 1.78 diff -u -p -r1.78 syscall.c --- linux-user/syscall.c 8 Dec 2006 01:32:58 -0000 1.78 +++ linux-user/syscall.c 10 Dec 2006 23:32:48 -0000 @@ -841,7 +842,7 @@ static long do_accept(int fd, target_ulo 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)); -- dwmw2