Index: linux-user/syscall.c =================================================================== RCS file: /sources/qemu/qemu/linux-user/syscall.c,v retrieving revision 1.85 diff -u -r1.85 syscall.c --- linux-user/syscall.c 11 Feb 2007 18:36:44 -0000 1.85 +++ linux-user/syscall.c 11 Feb 2007 19:23:28 -0000 @@ -2952,7 +2952,9 @@ #endif case TARGET_NR_syslog: - ret = get_errno(sys_syslog((int)arg1, (char*)arg2, (int)arg3)); + p = lock_user_string(arg2); + ret = get_errno(sys_syslog((int)arg1, p, (int)arg3)); + unlock_user(p, arg2, 0); break; case TARGET_NR_setitimer: