User: Password:
Subscribe / Log in / New account



Posted Nov 17, 2010 6:26 UTC (Wed) by ncm (subscriber, #165)
In reply to: Null-Terminated Strings by neilbrown
Parent article: Ghosts of Unix past, part 3: Unfixable designs

Sorry, strlcpy is a failure. It takes more and uglier code to use it correctly than to use strcpy with the same level of checking. As a consequence, it is rarely used correctly, and unprofitably when it is. This is not to say that one cannot improve on strcpy, just that strlcpy doesn't.

(Log in to post comments)

Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds