Was miscomputing end of string position for FcStrtod in locales with

multibyte separators (2.2 branch)
This commit is contained in:
Keith Packard 2003-07-09 17:04:59 +00:00
parent 339c83e11e
commit 79f1aaef60
1 changed files with 1 additions and 1 deletions

View File

@ -962,7 +962,7 @@ FcStrtod (char *s, char **end)
buf_end = 0; buf_end = 0;
v = strtod (buf, &buf_end); v = strtod (buf, &buf_end);
if (buf_end) if (buf_end)
buf_end = s + (buf_end - buf); buf_end = s + (buf_end - buf) + 1 - dlen;
if (end) if (end)
*end = buf_end; *end = buf_end;
} }