Commit daa533a7 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

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
No related merge requests found
Showing with 1 addition and 0 deletions
+1 -0
......@@ -296,6 +296,7 @@ void read_file(FILE *f, const char *filename)
} else if (fileptr->next == NULL) {
filebot = fileptr;
new_magicline();
totsize--;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment