OSDN Git Service

2000-08-08 Jeff Johnston <jjohnstn@redhat.com>
authorjjohnstn <jjohnstn>
Tue, 8 Aug 2000 19:01:02 +0000 (19:01 +0000)
committerjjohnstn <jjohnstn>
Tue, 8 Aug 2000 19:01:02 +0000 (19:01 +0000)
commitb1249c05263b2b4d92e5976ee6a01fb87f545ba1
tree9a6d27498d2e10b6e72041cf2a2a80983e4c6aa2
parent61111600e464607b46279dbc6737cb8662b01aee
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.
newlib/ChangeLog
newlib/libc/stdio/snprintf.c
newlib/libc/stdio/vsnprintf.c