2008-08-27 Corinna Vinschen <corinna@vinschen.de>
* libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Fix condition for accepting a converted character and continuing the loop.
This commit is contained in:
@ -45,7 +45,7 @@ _DEFUN (_wcsrtombs_r, (r, dst, src, len, ps),
|
||||
ps->__count = 0;
|
||||
return (size_t)-1;
|
||||
}
|
||||
if (n <= len - bytes && bytes < len)
|
||||
if (n <= len - bytes && bytes <= len)
|
||||
{
|
||||
n += bytes;
|
||||
if (dst)
|
||||
|
Reference in New Issue
Block a user