Commit 214201bdd4e41ec9748a434a68fa8f6fcc57bd49

Authored by pbrook
1 parent 6658ffb8

Usermode recv syscall fix.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2480 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 2 additions and 2 deletions
linux-user/syscall.c
@@ -2914,12 +2914,12 @@ long do_syscall(void *cpu_env, int num, long arg1, long arg2, long arg3, @@ -2914,12 +2914,12 @@ long do_syscall(void *cpu_env, int num, long arg1, long arg2, long arg3,
2914 #endif 2914 #endif
2915 #ifdef TARGET_NR_recv 2915 #ifdef TARGET_NR_recv
2916 case TARGET_NR_recv: 2916 case TARGET_NR_recv:
2917 - ret = do_recvfrom(arg1, arg1, arg3, arg4, 0, 0); 2917 + ret = do_recvfrom(arg1, arg2, arg3, arg4, 0, 0);
2918 break; 2918 break;
2919 #endif 2919 #endif
2920 #ifdef TARGET_NR_recvfrom 2920 #ifdef TARGET_NR_recvfrom
2921 case TARGET_NR_recvfrom: 2921 case TARGET_NR_recvfrom:
2922 - ret = do_recvfrom(arg1, arg1, arg3, arg4, arg5, arg6); 2922 + ret = do_recvfrom(arg1, arg2, arg3, arg4, arg5, arg6);
2923 break; 2923 break;
2924 #endif 2924 #endif
2925 #ifdef TARGET_NR_recvmsg 2925 #ifdef TARGET_NR_recvmsg