As a side note, I'd generally stay away from strcpy() and strcat().
It is estimated that about 80% of all security vulnerabilities are
If your OS supports it, use strlcpy() and strlcat() [OBSD 2.4+, FBSD 3.3+,
Solaris 8+, dunno about others].
Else, use at least strncpy() and strncat(), and make sure the result is
To paraphrase Dave N., there really is no excuse for writing vulnerable code.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!