]> git.wh0rd.org Git - fontconfig.git/commitdiff
Was miscomputing end of string position for FcStrtod in locales with
authorKeith Packard <keithp@keithp.com>
Wed, 9 Jul 2003 17:04:59 +0000 (17:04 +0000)
committerKeith Packard <keithp@keithp.com>
Wed, 9 Jul 2003 17:04:59 +0000 (17:04 +0000)
    multibyte separators (2.2 branch)

src/fcxml.c

index 657959c158c7c4733b3df510c1be4f3e41e51163..ffde1b69f4a8df0d0b1547fe20212b15d2aee08d 100644 (file)
@@ -962,7 +962,7 @@ FcStrtod (char *s, char **end)
            buf_end = 0;
            v = strtod (buf, &buf_end);
            if (buf_end)
-               buf_end = s + (buf_end - buf);
+               buf_end = s + (buf_end - buf) + 1 - dlen;
            if (end)
                *end = buf_end;
        }