]> git.wh0rd.org Git - nano.git/commitdiff
add missing set of parentheses
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Tue, 30 Sep 2003 03:31:56 +0000 (03:31 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Tue, 30 Sep 2003 03:31:56 +0000 (03:31 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1563 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

src/winio.c

index bff6ebae1dad35b2920aa385b7845797bb2092a2..d474769112a4dcb759a36761eebc4bf9a1ff8ce8 100644 (file)
@@ -352,7 +352,7 @@ size_t actual_x(const char *str, size_t xplus)
 
     for (; length < xplus && *str != '\0'; i++, str++) {
        if (*str == '\t')
-           length += tabsize - length % tabsize;
+           length += tabsize - (length % tabsize);
        else if (is_cntrl_char((int)*str))
            length += 2;
        else