Deleted Added
full compact
28c28
< __FBSDID("$FreeBSD: head/lib/libc/locale/utf8.c 128081 2004-04-10 00:27:52Z tjr $");
---
> __FBSDID("$FreeBSD: head/lib/libc/locale/utf8.c 128155 2004-04-12 13:09:18Z tjr $");
81a82,86
> if (us->count < 0 || us->count > sizeof(us->bytes)) {
> errno = EINVAL;
> return ((size_t)-1);
> }
>
179,180c184
< _UTF8_wcrtomb(char * __restrict s, wchar_t wc,
< mbstate_t * __restrict ps __unused)
---
> _UTF8_wcrtomb(char * __restrict s, wchar_t wc, mbstate_t * __restrict ps)
181a186
> _UTF8State *us;
184a190,196
> us = (_UTF8State *)ps;
>
> if (us->count < 0 || us->count > sizeof(us->bytes)) {
> errno = EINVAL;
> return ((size_t)-1);
> }
>