mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-03 00:10:10 +00:00
Update.
1999-07-26 Ulrich Drepper <drepper@cygnus.com> * wcsmbs/wcsrtombs.c (__wcsrtombs): When computing maximum number of wide characters to convert do it right and don't overestimate by multiplying with MB_CUR_MAX. Reported by Bruno Haible <haible@ilog.fr>.
This commit is contained in:
parent
b18ac18e67
commit
b8a423c2db
@ -1,3 +1,10 @@
|
|||||||
|
1999-07-26 Ulrich Drepper <drepper@cygnus.com>
|
||||||
|
|
||||||
|
* wcsmbs/wcsrtombs.c (__wcsrtombs): When computing maximum number
|
||||||
|
of wide characters to convert do it right and don't overestimate
|
||||||
|
by multiplying with MB_CUR_MAX.
|
||||||
|
Reported by Bruno Haible <haible@ilog.fr>.
|
||||||
|
|
||||||
1999-07-26 Jakub Jelinek <jj@ultra.linux.jz>
|
1999-07-26 Jakub Jelinek <jj@ultra.linux.jz>
|
||||||
|
|
||||||
* string/bits/string2.h (__strcpy_small): Avoid compile time warning.
|
* string/bits/string2.h (__strcpy_small): Avoid compile time warning.
|
||||||
|
@ -94,7 +94,7 @@ __wcsrtombs (dst, src, len, ps)
|
|||||||
/* This code is based on the safe assumption that all internal
|
/* This code is based on the safe assumption that all internal
|
||||||
multi-byte encodings use the NUL byte only to mark the end
|
multi-byte encodings use the NUL byte only to mark the end
|
||||||
of the string. */
|
of the string. */
|
||||||
const wchar_t *srcend = *src + __wcsnlen (*src, len * MB_CUR_MAX) + 1;
|
const wchar_t *srcend = *src + __wcsnlen (*src, len) + 1;
|
||||||
size_t dummy;
|
size_t dummy;
|
||||||
|
|
||||||
data.__outbuf = dst;
|
data.__outbuf = dst;
|
||||||
|
Loading…
Reference in New Issue
Block a user