From: David Lawrence Ramsey Date: Mon, 7 Feb 2005 05:31:51 +0000 (+0000) Subject: fix off-by-one error when calculating totsize in read_file(), introduced X-Git-Tag: v1.3.6~95 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=daa533a767104223fe264cc4c2085079ff3c56a9;p=nano.git 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 --- 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--; } }