diff options
author | Keith Packard <keithp@keithp.com> | 2003-07-09 17:04:17 +0000 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2003-07-09 17:04:17 +0000 |
commit | 26da2bb42f91360ecdee9006ff0f8a7ef0609a59 (patch) | |
tree | ea9a5621f26990724f1a890c1276c25c2a448769 | |
parent | 656c69d6a8a1e6a82cfdd599c657f8fc2717af8d (diff) | |
download | fontconfig-26da2bb42f91360ecdee9006ff0f8a7ef0609a59.tar.gz |
Was miscomputing end of string position for FcStrtod in locales with
multibyte separators
-rw-r--r-- | src/fcxml.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fcxml.c b/src/fcxml.c index 3cdbaa4..acb1bac 100644 --- a/src/fcxml.c +++ b/src/fcxml.c @@ -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; } |