Skip to content

Commit 2cc20c0

Browse files
committed
[PRISM] Use RSTRING_PTR for Ruby parsing with fgets
1 parent e77e4aa commit 2cc20c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

prism_compile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10484,7 +10484,7 @@ pm_parse_stdin_fgets(char *string, int size, void *stream)
1048410484
return NULL;
1048510485
}
1048610486

10487-
const char *cstr = StringValuePtr(line);
10487+
const char *cstr = RSTRING_PTR(line);
1048810488
long length = RSTRING_LEN(line);
1048910489

1049010490
memcpy(string, cstr, length);

0 commit comments

Comments
 (0)