[PRISM] Use RSTRING_PTR for Ruby parsing with fgets

This commit is contained in:
Kevin Newton 2024-07-17 15:45:07 -04:00
parent e77e4aa608
commit 2cc20c06e0
No known key found for this signature in database
GPG Key ID: 0EAD74C79EC73F26

View File

@ -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);