aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2007-03-17 01:27:24 +0000
committerpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2007-03-17 01:27:24 +0000
commit214201bdd4e41ec9748a434a68fa8f6fcc57bd49 (patch)
tree24d15bb274724cf58474a46cdb5429ec54eda650
parent6658ffb81ee56a510d7d77025872a508a9adce3a (diff)
downloadqemu-214201bdd4e41ec9748a434a68fa8f6fcc57bd49.zip
qemu-214201bdd4e41ec9748a434a68fa8f6fcc57bd49.tar.gz
qemu-214201bdd4e41ec9748a434a68fa8f6fcc57bd49.tar.bz2
Usermode recv syscall fix.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2480 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r--linux-user/syscall.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index acd098d..7e4b059 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -2914,12 +2914,12 @@ long do_syscall(void *cpu_env, int num, long arg1, long arg2, long arg3,
#endif
#ifdef TARGET_NR_recv
case TARGET_NR_recv:
- ret = do_recvfrom(arg1, arg1, arg3, arg4, 0, 0);
+ ret = do_recvfrom(arg1, arg2, arg3, arg4, 0, 0);
break;
#endif
#ifdef TARGET_NR_recvfrom
case TARGET_NR_recvfrom:
- ret = do_recvfrom(arg1, arg1, arg3, arg4, arg5, arg6);
+ ret = do_recvfrom(arg1, arg2, arg3, arg4, arg5, arg6);
break;
#endif
#ifdef TARGET_NR_recvmsg