summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fakejvm/jvm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fakejvm/jvm.c b/src/fakejvm/jvm.c
index f71412f..baf097c 100644
--- a/src/fakejvm/jvm.c
+++ b/src/fakejvm/jvm.c
@@ -35,7 +35,7 @@ jvm_string_set_cstr_with_length(struct jvm_string *string, const char *data, con
assert(string);
char *copy = (char*)data;
- if (heap && data && len > 0 && !(copy = ccopy(data, len, data[len] != 0)))
+ if (heap && data && len > 0 && !(copy = ccopy(data, len, true)))
return false;
jvm_string_release(string);