diff options
author | Ulrich Drepper <drepper@redhat.com> | 2005-08-22 15:13:39 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2005-08-22 15:13:39 +0000 |
commit | f9a906e786fbca1b0bdfe7d3842610ca87035958 (patch) | |
tree | a68c15c17410eaf300f0d841f89e16765c1af4ea /ChangeLog | |
parent | e2a99d8e1fb78ea428641ffa51ae68188cc77b6a (diff) | |
download | glibc-f9a906e786fbca1b0bdfe7d3842610ca87035958.tar.gz glibc-f9a906e786fbca1b0bdfe7d3842610ca87035958.tar.xz glibc-f9a906e786fbca1b0bdfe7d3842610ca87035958.zip |
* stdlib/bits/stdlib.h (mbstowcs): Divide __bos (__dst) by
sizeof (wchar_t) rather than multiplying __len by sizeof (wchar_t). Pass __bos (__dst) / sizeof (wchar_t) to the *_chk routine. * wcsmbs/bits/wchar2.h (mbsrtowcs, mbsnrtowcs): Likewise. * debug/mbsnrtowcs_chk.c (__mbsnrtowcs_chk): Don't multiply len by sizeof (wchar_t). * debug/mbsrtowcs_chk.c (__mbsrtowcs_chk): Likewise. * debug/mbstowcs_chk.c (__mbstowcs_chk): Likewise. Fix type of SRC argument. Pass &SRC rather than SRC to __mbsrtowcs. * debug/wcstombs_chk.c (__wcstombs_chk): Pass &SRC rather than SRC to __wcsrtombs. * debug/tst-chk1.c: Include assert.h. (do_test): Change enough array from VLA into a fixed size array. Assert that MB_CUR_MAX is <= sizeof (enough). Use FAIL () macro instead of print error details. Add several new tests. Kill some unused variable warnings.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index 2d86dcaba1..e0763ab04e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,23 @@ +2005-08-22 Jakub Jelinek <jakub@redhat.com> + + * stdlib/bits/stdlib.h (mbstowcs): Divide __bos (__dst) by + sizeof (wchar_t) rather than multiplying __len by sizeof (wchar_t). + Pass __bos (__dst) / sizeof (wchar_t) to the *_chk routine. + * wcsmbs/bits/wchar2.h (mbsrtowcs, mbsnrtowcs): Likewise. + * debug/mbsnrtowcs_chk.c (__mbsnrtowcs_chk): Don't multiply + len by sizeof (wchar_t). + * debug/mbsrtowcs_chk.c (__mbsrtowcs_chk): Likewise. + * debug/mbstowcs_chk.c (__mbstowcs_chk): Likewise. + Fix type of SRC argument. Pass &SRC rather than SRC to + __mbsrtowcs. + * debug/wcstombs_chk.c (__wcstombs_chk): Pass &SRC rather than SRC + to __wcsrtombs. + * debug/tst-chk1.c: Include assert.h. + (do_test): Change enough array from VLA into a fixed size array. + Assert that MB_CUR_MAX is <= sizeof (enough). Use FAIL () macro + instead of print error details. Add several new tests. + Kill some unused variable warnings. + 2005-08-21 Ulrich Drepper <drepper@redhat.com> * resolv/res_send.c (Aerror): Fix printing IP address. |