From ee476c6eb6b1323146eda9e9d2d6a253b20a595d Mon Sep 17 00:00:00 2001 From: Laurent MONIN Date: Thu, 20 Oct 2005 11:13:10 +0200 Subject: [PATCH] shift_chars(): let it use alloca() if possible (--fastmem mode only). --- src/document/html/renderer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/document/html/renderer.c b/src/document/html/renderer.c index 9f8c28534..91587f067 100644 --- a/src/document/html/renderer.c +++ b/src/document/html/renderer.c @@ -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); }