diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2000-08-08 23:01:02 +0400 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2000-08-08 23:01:02 +0400 |
commit | befe0fb3e142e287f79e0589c2e50996d9f10944 (patch) | |
tree | 2f7b26a471166e65ac697426fd3996be261322d0 /newlib/ChangeLog | |
parent | 0e882d4f29d54bc21a3147609d2caadb2d3a4c0f (diff) |
2000-08-08 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdio/snprintf.c (snprintf, _snprintf_r): Fixed code
so size of 0 results in nothing being written to string.
Also fixed code so that when size is non-zero, there is only
a maximum of size - 1 characters written to the array and
a nul terminator is appended at the end.
* libc/stdio/vsnprintf.c (vsnprintf, _vsnprintf_r): Ditto.
Diffstat (limited to 'newlib/ChangeLog')
-rw-r--r-- | newlib/ChangeLog | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index a830dd736..caee23f88 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,12 @@ +2000-08-08 Jeff Johnston <jjohnstn@redhat.com> + + * libc/stdio/snprintf.c (snprintf, _snprintf_r): Fixed code + so size of 0 results in nothing being written to string. + Also fixed code so that when size is non-zero, there is only + a maximum of size - 1 characters written to the array and + a nul terminator is appended at the end. + * libc/stdio/vsnprintf.c (vsnprintf, _vsnprintf_r): Ditto. + 2000-08-01 DJ Delorie <dj@redhat.com> * libc/include/sys/config.h: define __IMPORT appropriately |