OSDN Git Service

2006-02-13 Jeff Johnston <jjohnstn@redhat.com>
authorjjohnstn <jjohnstn>
Mon, 13 Feb 2006 17:27:46 +0000 (17:27 +0000)
committerjjohnstn <jjohnstn>
Mon, 13 Feb 2006 17:27:46 +0000 (17:27 +0000)
commit475e2b22f16de1dd959342e2eee358281b04a6d7
tree148b973d5f0b1fea3567e27c851bc60737def7c8
parent719dcf686127e289b55bf1ee956fa778ed6a05a4
2006-02-13  Jeff Johnston  <jjohnstn@redhat.com>
            David Carne  <davidcarne@gmail.com>

        * libc/string/strndup_r.c (_strndup_r): Use strnlen logic
        instead of strlen to determine number of bytes to copy.
        * libc/string/strnlen.c (strnlen): Fix so check for max limit occurs
        before looking at storage location.
newlib/ChangeLog
newlib/libc/string/strndup_r.c
newlib/libc/string/strnlen.c