[PRISM] Use RSTRING_PTR for Ruby parsing with fgets
This commit is contained in:
parent
e77e4aa608
commit
2cc20c06e0
@ -10484,7 +10484,7 @@ pm_parse_stdin_fgets(char *string, int size, void *stream)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *cstr = StringValuePtr(line);
|
const char *cstr = RSTRING_PTR(line);
|
||||||
long length = RSTRING_LEN(line);
|
long length = RSTRING_LEN(line);
|
||||||
|
|
||||||
memcpy(string, cstr, length);
|
memcpy(string, cstr, length);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user