]> git.wh0rd.org Git - nano.git/commitdiff
fix off-by-one error when calculating totsize in read_file(), introduced
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Mon, 7 Feb 2005 05:31:51 +0000 (05:31 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Mon, 7 Feb 2005 05:31:51 +0000 (05:31 +0000)
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

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