From daa533a767104223fe264cc4c2085079ff3c56a9 Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Mon, 7 Feb 2005 05:31:51 +0000 Subject: [PATCH] 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 --- src/files.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/files.c b/src/files.c index a01ed0af..1a50b483 100644 --- 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--; } } -- 2.39.5