moving uses of strncpy/cat to srtlcpy/cat?

From: Date: Mon, 13 Sep 1999 22:55:44 +0000
Subject: moving uses of strncpy/cat to srtlcpy/cat?
Groups: php.version4 
Request: Send a blank email to php-version4+get-4410@lists.php.net to get a copy of this message
Are any of you familiar with strlcpy/cat as used in OpenBSD? They are supposedly faster/safer versions of strncpy/cat... make buffer overruns (impossible|less likely), and strlcat does not zero fill as strncat does... Anyone think it would be good to use these? I tried to get Ulrich Drepper (glibc maint.) to look into them for glibc, but his attitude was "no one should ever use str*cat anyway, and why do I need a new str*cpy?"...but Theo de Raadt (sp?) makes a great argument _FOR_ them... http://www.openbsd.org/papers/strlcpy-paper.ps OR if you prefer PDF http://www.xmission.com/~smit5898/strlcpy-paper.pdf --Joey Smith

« previous php.version4 (#4410) next »