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
master
David Lawrence Ramsey 2005-02-07 05:31:51 +00:00
parent 3eeb823f92
commit daa533a767
1 changed files with 1 additions and 0 deletions

View File

@ -296,6 +296,7 @@ void read_file(FILE *f, const char *filename)
} else if (fileptr->next == NULL) {
filebot = fileptr;
new_magicline();
totsize--;
}
}