Commit 6ed12fe8 authored by Roozbeh Pournader's avatar Roozbeh Pournader
Browse files

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

    separators.
parent 79f1aaef
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
......
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment