23 lines
834 B
Diff
23 lines
834 B
Diff
Index: qemu-0.9.0/linux-user/syscall.c
|
|
===================================================================
|
|
--- qemu-0.9.0.orig/linux-user/syscall.c
|
|
+++ qemu-0.9.0/linux-user/syscall.c
|
|
@@ -869,7 +869,7 @@ static long do_getpeername(int fd, targe
|
|
target_ulong target_addrlen)
|
|
{
|
|
socklen_t addrlen = tget32(target_addrlen);
|
|
- void *addr = alloca(target_addrlen);
|
|
+ void *addr = alloca(addrlen);
|
|
long ret;
|
|
|
|
gemu_log("getpeername(%d,0x%lx,0x%lx)\n", fd, addr, addrlen);
|
|
@@ -887,7 +887,7 @@ static long do_getsockname(int fd, targe
|
|
target_ulong target_addrlen)
|
|
{
|
|
socklen_t addrlen = tget32(target_addrlen);
|
|
- void *addr = alloca(target_addrlen);
|
|
+ void *addr = alloca(addrlen);
|
|
long ret;
|
|
|
|
ret = get_errno(getsockname(fd, addr, &addrlen));
|