]> 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:17 +0000 (17:04 +0000)
committerKeith Packard <keithp@keithp.com>
Wed, 9 Jul 2003 17:04:17 +0000 (17:04 +0000)
    multibyte separators

src/fcxml.c

index 3cdbaa4ca2c0566f8a0da9e55407e2b5061b9e91..acb1bac6df9b13aad291986dbcc7e8c0d0aae844 100644 (file)
@@ -974,7 +974,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;
        }