On Wed, 6 Mar 2013, Daniel Stenberg wrote:

The strncat() function is also easy to misuse, so you might want to consider adding that one as well.

Thanks, I'll add that as well.

After a short conversation on IRC I just wanted to add to my explanation that I also considered to warn about strcpy and especially strncpy, but we're currently using these functions a little too much for me to start warning about them right now.

--

 / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to