Fixed a bug "FcStrtod" in handling some cases with two-byte decimal

separators.
This commit is contained in:
Roozbeh Pournader 2003-11-10 18:10:15 +00:00
parent 79f1aaef60
commit 6ed12fe8f8
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2003-11-10 Roozbeh Pournader <roozbeh@sharif.edu>
* src/fcxml.c:
Fixed a bug "FcStrtod" in handling some cases with two-byte decimal
separators.
2003-06-09 Keith Packard <keithp@keithp.com>
* Tag version 2.2.1

View File

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