mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
ruby: missing change PTR to LEN
This commit is contained in:
parent
eed78fbcff
commit
00d34fd0ed
@ -116,7 +116,7 @@ erb_module_message(VALUE self, VALUE str)
|
||||
struct terminal *term;
|
||||
|
||||
str = rb_obj_as_string(str);
|
||||
message = memacpy(RSTRING_PTR(str), RSTRING_PTR(str));
|
||||
message = memacpy(RSTRING_PTR(str), RSTRING_LEN(str));
|
||||
if (!message) return Qnil;
|
||||
|
||||
line_end = strchr((const char *)message, '\n');
|
||||
|
Loading…
Reference in New Issue
Block a user