LP1461978: Fix Segfault in History Library user/jboyer/lp1461978_history_segfault
authorJason Boyer <JBoyer@equinoxinitiative.org>
Mon, 11 Jan 2021 14:59:39 +0000 (09:59 -0500)
committerJason Boyer <JBoyer@equinoxinitiative.org>
Mon, 11 Jan 2021 14:59:39 +0000 (09:59 -0500)
commit987939c3b0a19b5699f84ac4a3e576f5131ecc5d
tree98b62fafb43b73e5a5f0a83b78f01fba39e90011
parenta03b08905c7fb7d891b8abdd3f200b6fba231b08
LP1461978: Fix Segfault in History Library

It appears an attempt was made to limit history entries to 5000
by setting history_size to 5000. There are 2 issues with this:
first, history_size is something that is retieved, not something
that is set; and secondly, to correctly set history_max_size we
need to call stifle_history(5000).

Signed-off-by: Jason Boyer <JBoyer@equinoxinitiative.org>
src/srfsh/srfsh.c