2008-08-28 Corinna Vinschen <corinna@vinschen.de>
* libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Optimize condition for accepting a converted character.
This commit is contained in:
parent
bfe1d14847
commit
60ac13a0b0
|
@ -1,3 +1,8 @@
|
||||||
|
2008-08-28 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Optimize condition
|
||||||
|
for accepting a converted character.
|
||||||
|
|
||||||
2008-08-27 Sandra Loosemore <sandra@codesourcery.com>
|
2008-08-27 Sandra Loosemore <sandra@codesourcery.com>
|
||||||
|
|
||||||
* libc/libc.texinfo: Remove "LOCAL KLUGE" that prevents it
|
* libc/libc.texinfo: Remove "LOCAL KLUGE" that prevents it
|
||||||
|
|
|
@ -45,7 +45,7 @@ _DEFUN (_wcsrtombs_r, (r, dst, src, len, ps),
|
||||||
ps->__count = 0;
|
ps->__count = 0;
|
||||||
return (size_t)-1;
|
return (size_t)-1;
|
||||||
}
|
}
|
||||||
if (n <= len - bytes && bytes <= len)
|
if (n + bytes <= len)
|
||||||
{
|
{
|
||||||
n += bytes;
|
n += bytes;
|
||||||
if (dst)
|
if (dst)
|
||||||
|
|
Loading…
Reference in New Issue