1
0
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:
Witold Filipczyk 2018-03-10 10:27:46 +01:00
parent eed78fbcff
commit 00d34fd0ed

View File

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