nnn/src
KlzXS 65dec55e23
Improved chunk allocation logic
Found memory deallocation edge case

Update and move chunk limit check

Generalize maximum size of input

Remove hard-coded values

Remove superfluous check before free

Let the kernel deal with extra data

Handle signals while reading

Conform to the manpage

Make CI happy

use `size_t` instead of `ssize_t`

`ssize_t` was used just so `--i` when `i` was zero would become -1
instead of SIZE_MAX. for looping through something in reverse order, the
"goes-to" operator (`-->`) can be used instead which doesn't require `i`
to be signed anymore.

remove useless blank line

use a normal loop

don't see any reason why freeing in reverse order would've been needed.

Co-authored-by: N-R-K <nrk@disroot.org>
2022-08-03 17:38:19 +02:00
..
.clang-tidy Fix build break 2022-06-28 23:17:23 +05:30
dbg.h Update copyright date 2022-01-22 16:02:51 +05:30
icons-hash.c icons-hash: comments and cleanups 2022-07-25 18:34:36 +06:00
icons-in-terminal.h Add nerdfont defs file and normalize vars (#722) 2020-09-14 22:09:52 +05:30
icons.h Add Elixir icon (#1437) 2022-07-25 19:40:00 +05:30
nnn.c Improved chunk allocation logic 2022-08-03 17:38:19 +02:00
nnn.h Key 'J' to jump to entry number or relative offset 2022-07-31 18:54:47 +05:30
qsort.h Add support for Alexey Tourbin's QSORT code (#708) 2020-08-21 08:15:45 +05:30