From: Keith Packard Date: Wed, 9 Jul 2003 17:04:59 +0000 (+0000) Subject: Was miscomputing end of string position for FcStrtod in locales with X-Git-Tag: fc-2_2_2~2 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=79f1aaef60e56eed2bdd1fffbed995992ef32692;p=fontconfig.git Was miscomputing end of string position for FcStrtod in locales with multibyte separators (2.2 branch) --- diff --git a/src/fcxml.c b/src/fcxml.c index 657959c..ffde1b6 100644 --- a/src/fcxml.c +++ b/src/fcxml.c @@ -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; }