diff options
Diffstat (limited to 'linux-user')
-rw-r--r-- | linux-user/syscall.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 74b41a82d6..f5875aa1f7 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -293,7 +293,7 @@ static int sys_getcwd1(char *buf, size_t size) /* getcwd() sets errno */ return (-1); } - return (0); + return strlen(buf)+1; } #ifdef CONFIG_ATFILE |