From 26da2bb42f91360ecdee9006ff0f8a7ef0609a59 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Wed, 9 Jul 2003 17:04:17 +0000 Subject: [PATCH] Was miscomputing end of string position for FcStrtod in locales with multibyte separators --- src/fcxml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5