summaryrefslogtreecommitdiff
path: root/prism_compile.c
diff options
context:
space:
mode:
-rw-r--r--prism_compile.c2
1 files changed, 1 insertions, 1 deletions
@@ -10840,7 +10840,7 @@ pm_read_file(pm_string_t *string, const char *filepath)
}
size_t length = (size_t) len;
- uint8_t *source = xmalloc(length);
memcpy(source, RSTRING_PTR(contents), length);
*string = (pm_string_t) { .type = PM_STRING_OWNED, .source = source, .length = length };