nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 735a608e80eb80a85e906a0737166dfff8796ebe
parent 71402bb7e954f7b247b62ea075f5ca6ac8bf12db
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Mon, 11 Jan 2021 19:15:35 +0100

speller: strip leading whitespace from command, to avoid a sneaky crash

This completes the fix for https://savannah.gnu.org/bugs/?59855.

Diffstat:
Msrc/nano.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/nano.c b/src/nano.c @@ -2166,6 +2166,9 @@ int main(int argc, char **argv) free(alt_speller); alt_speller = alt_speller_cmdline; } + /* Strip leading whitespace from the speller command, if any. */ + while (alt_speller && *alt_speller && isblank(*alt_speller)) + alt_speller++; #endif /* If an rcfile undid the default settings, copy it to the new flags. */