nano

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

commit daa533a767104223fe264cc4c2085079ff3c56a9
parent 3eeb823f92c911f2427012786527c51430f057dc
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Mon,  7 Feb 2005 05:31:51 +0000

fix off-by-one error when calculating totsize in read_file(), introduced
when totsize was converted to hold the total number of multibyte
characters


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

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

diff --git a/src/files.c b/src/files.c @@ -296,6 +296,7 @@ void read_file(FILE *f, const char *filename) } else if (fileptr->next == NULL) { filebot = fileptr; new_magicline(); + totsize--; } }