Re: A better strlcat()
| From: | Sascha Schumann | Date: | Thu, 02 May 2002 17:58:30 +0000 |
| Subject: | Re: A better strlcat() | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-83617@lists.php.net to get a copy of this message | ||
Note that the functions do not behave equally, because
xxx_strlcat does a plain strlen() whereas php_strlcat uses
strnlen(), i.e. it always catches the n1 >= nMax situation,
even in release mode.
I'd prefer slow strl* functions, because they remind people of
avoiding them altogether and use smarter functions. Like
those in php_smart_str.h, for example. :-)
- Sascha Experience IRCG
http://schumann.cx/ http://schumann.cx/ircg