summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--prism_compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/prism_compile.c b/prism_compile.c
index d973a9bf44..b867b7900b 100644
--- a/prism_compile.c
+++ b/prism_compile.c
@@ -10484,7 +10484,7 @@ pm_parse_stdin_fgets(char *string, int size, void *stream)
return NULL;
}
- const char *cstr = StringValuePtr(line);
+ const char *cstr = RSTRING_PTR(line);
long length = RSTRING_LEN(line);
memcpy(string, cstr, length);