nano

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

commit 35fb55aba24afa658bdc7d74d0de0fe6b3282c95
parent c08368bd1901a0db21544f61913d97f55638a019
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Tue, 17 Aug 2004 19:28:54 +0000

and add last missing bit


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1904 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

Diffstat:
Msrc/utils.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/utils.c b/src/utils.c @@ -290,6 +290,7 @@ ssize_t ngetdelim(char **lineptr, size_t *n, int delim, FILE *stream) /* Null terminate the buffer. */ null_at(lineptr, indx++); + *n = indx; /* The last line may not have the delimiter, we have to return what * we got and the error will be seen on the next iteration. */