Re: libedit: don't segfault on bind to invalid command

2011-11-26 Thread Nicholas Marriott
go for it, ok nicm On Wed, Nov 23, 2011 at 11:17:51PM +0100, Pascal Stumpf wrote: > Whenever you try to bind a key to an invalid command in a program that > uses libedit, the program will segfault. This is because parse_cmd() in > parse.c still assumes an old format of the help array (where it w

libedit: don't segfault on bind to invalid command

2011-11-23 Thread Pascal Stumpf
Whenever you try to bind a key to an invalid command in a program that uses libedit, the program will segfault. This is because parse_cmd() in parse.c still assumes an old format of the help array (where it was NULL-terminated). This is no longer the case, and .nfunc now keeps track of both the h