aboutsummaryrefslogtreecommitdiff
path: root/linux-user/uaccess.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux-user/uaccess.c')
-rw-r--r--linux-user/uaccess.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/uaccess.c b/linux-user/uaccess.c
index ed50437566..4d506935f8 100644
--- a/linux-user/uaccess.c
+++ b/linux-user/uaccess.c
@@ -62,7 +62,7 @@ abi_long target_strlen(abi_ulong guest_addr1)
ptr = lock_user(VERIFY_READ, guest_addr, max_len, 1);
if (!ptr)
return -TARGET_EFAULT;
- len = qemu_strnlen(ptr, max_len);
+ len = qemu_strnlen((const char *)ptr, max_len);
unlock_user(ptr, guest_addr, 0);
guest_addr += len;
/* we don't allow wrapping or integer overflow */