#8481: strncpy doesn't pad the destination string with NULs ---------------------------------+---------------------------- Reporter: hamish | Owner: axeld Type: bug | Status: new Priority: normal | Milestone: R1 Component: System/libroot.so | Version: R1/Development Resolution: | Keywords: strncpy Blocked By: | Blocking: Has a Patch: 1 | Platform: All ---------------------------------+---------------------------- Comment (by tqh): You could take a peek at strlen or strnlen which checks four bytes at a time for null, so you don't have to do it bytewise. -- Ticket URL: <http://dev.haiku-os.org/ticket/8481#comment:6> Haiku <http://dev.haiku-os.org> Haiku - the operating system.