Hi Ronnie,
strlcat is not a standard function at all: it was recently introduced by
OpenBSD. It is indeed preferable over strcat and strncat, so I would still
recommend using it; just include the strlcat cat code somewhere in case
HAVE_STRLCAT was not defined by autoconf.
By the way, a good way of knowing if a function is standard is to check it at
this address:
http://www.opengroup.org/onlinepubs/009695399/nfindex.html
On Sunday 28 August 2005 03:17, ronnie sahlberg wrote:
> List, Guy
>
> Now that all sprintf's are gone from the dissectors
> I would like to remove the 130 occurences of strcat.
>
> Best would be to replace them with strlcat() but how portable is that
> call?
>
> Do we have strlcat() on all the platforms we support?
--
Sébastien Raveau
computer and network security student
head of the hawKeye network monitor project
http://hawkeye.sourceforge.net/
Attachment:
pgp6UEByKEFSS.pgp
Description: PGP signature