summaryrefslogtreecommitdiffhomepage
path: root/lib/fs.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/fs.c')
-rw-r--r--lib/fs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/fs.c b/lib/fs.c
index c6066cc..a784b23 100644
--- a/lib/fs.c
+++ b/lib/fs.c
@@ -442,7 +442,7 @@ uc_fs_readlink(uc_vm *vm, size_t nargs)
}
while (true);
- res = json_object_new_string_len(buf, buflen);
+ res = json_object_new_string_len(buf, rv);
free(buf);