summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Newton <[email protected]>2024-07-17 15:45:07 -0400
committerKevin Newton <[email protected]>2024-07-17 15:45:07 -0400
commit2cc20c06e0e775467ff60098336f155565ad5f20 ()
treee96152608cee8480d114635aa0c97d6b59cd0a22
parente77e4aa608a12ea59cefc87abafd72fb2b0c0b9a (diff)
[PRISM] Use RSTRING_PTR for Ruby parsing with fgets
-rw-r--r--prism_compile.c2
1 files changed, 1 insertions, 1 deletions
@@ -10484,7 +10484,7 @@ pm_parse_stdin_fgets(char *string, int size, void *stream)
return NULL;
}
- const char *cstr = StringValuePtr(line);
long length = RSTRING_LEN(line);
memcpy(string, cstr, length);