1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

shift_chars(): let it use alloca() if possible (--fastmem mode only).

This commit is contained in:
Laurent MONIN 2005-10-20 11:13:10 +02:00 committed by Laurent MONIN
parent f28df73348
commit ee476c6eb6

View File

@ -615,14 +615,14 @@ shift_chars(struct html_context *html_context, int y, int shift)
len = LEN(y);
a = mem_alloc(len * sizeof(*a));
a = fmem_alloc(len * sizeof(*a));
if (!a) return;
copy_screen_chars(a, &POS(0, y), len);
clear_hchars(html_context, 0, y, shift);
copy_chars(html_context, shift, y, len, a);
mem_free(a);
fmem_free(a);
move_links(html_context, 0, y, shift, y);
}