CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2019/10/27 08:58:53
Modified files:
bin/ksh : history.c
Log message:
Don't fail hard if we can't preallocate history storage.
Using alloc.c for the history array brings no value and prevents
easy handling of memory shortage. Switch to plain reallocarray and
keep running if HISTSIZE is too big.
The allocation is still done upfront with no sanity checking, it would
probably be nicer to allocate space as needed.
Issue reported by [email protected] who suggested a different approach.