Was miscomputing end of string position for FcStrtod in locales with
multibyte separators (2.2 branch)
This commit is contained in:
parent
339c83e11e
commit
79f1aaef60
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue