]> git.proxmox.com Git - qemu.git/blobdiff - linux-user/flatload.c
linux-user: Fix pipe syscall return for SPARC
[qemu.git] / linux-user / flatload.c
index be794960ccc12e3948c37721facdc415aeb4d21e..58f679e07282acacde4c9ec20eec6c56d79e2b1b 100644 (file)
@@ -660,7 +660,7 @@ static int load_flat_file(struct linux_binprm * bprm,
     }
 
     /* zero the BSS.  */
-    memset((void *)((unsigned long)datapos + data_len), 0, bss_len);
+    memset(g2h(datapos + data_len), 0, bss_len);
 
     return 0;
 }