strpncpy(3) broken

Enrico Scholz <[email protected]> Mon, 14 Mar 2016 18:00:53 +0100
Newsgroups gmane.linux.lib.dietlibc
Message-ID <[email protected]>
Hi,

the new stpncpy() implementation does not fill remaining bytes with'\0'
anymore.  This is required by related standards[1]

   If the array pointed to by s2 is a string that is shorter than n
   bytes, NUL characters shall be appended to the copy in the array
   pointed to by s1, until n bytes in all are written.



Enrico

Footnotes: 
[1]  http://pubs.opengroup.org/onlinepubs/9699919799/functions/strncpy.html