mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Fix segfaults caused by ruby scripting (gentoo bug #121247). Backported
from gentoo portage tree.
This commit is contained in:
parent
5860a44b7d
commit
baf7b0e91d
@ -160,7 +160,7 @@ script_hook_pre_format_html(va_list ap, void *data)
|
||||
|
||||
args[0] = rb_str_new2(url);
|
||||
/* FIXME: Use html_len */
|
||||
args[1] = rb_str_new(fragment->data, fragment->length);
|
||||
args[1] = rb_str_new2(fragment->data);
|
||||
|
||||
result = erb_protected_method_call("pre_format_html_hook", 2, args, &error);
|
||||
if (error) {
|
||||
|
Loading…
Reference in New Issue
Block a user