]> git.ipfire.org Git - thirdparty/util-linux.git/commit
more: do not allocate shell command buffer from stack
authorSami Kerola <kerolasa@iki.fi>
Wed, 18 Mar 2020 20:12:54 +0000 (20:12 +0000)
committerSami Kerola <kerolasa@iki.fi>
Fri, 27 Mar 2020 21:06:08 +0000 (21:06 +0000)
commit474c61c0a8f4051727e7cad3bee6499162c5d797
tree8b5702e50fe3974d11d4b81092573689fe74b4a5
parent823ef319b67ea232c87dc0fdb40ddb1570e1e9ad
more: do not allocate shell command buffer from stack

This change has three possitive effects:  Avoid expansion code when it is
not needed.  Stop wasting memory from stack for something rarely needed.
When command buffer is needed stop limiting it's size artificially.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
text-utils/more.c