Missing braces around a block of code. Correct fix was already in HEAD.
This commit is contained in:
Keith Packard 2004-03-30 17:15:00 +00:00
parent d48384899e
commit ad47b4480e
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,11 @@
2004-03-30 Keith Packard <keithp@keithp.com>
Bug #387 - usr352@wanadoo.es (Pedro Gimeno)
* src/fcxml.c: (FcStrtod):
Missing braces around a block of code. Correct fix was
already in HEAD.
2004-03-28 Tor Lillqvist <tml@iki.fi>
Merge from HEAD:

View File

@ -961,10 +961,11 @@ FcStrtod (char *s, char **end)
strcpy (buf + (dot - s) + dlen, dot + 1);
buf_end = 0;
v = strtod (buf, &buf_end);
if (buf_end)
if (buf_end) {
buf_end = s + (buf_end - buf);
if (buf_end > dot)
buf_end -= dlen - 1;
}
if (end)
*end = buf_end;
}