Comment Comment by danielweber Almost every one has a n version you should use, and their man pages will tell you that.strcpy -> strncpy (or strlcpy on BSD)strcat -> strncat (or strlcat on BSD)sprintf -> snprintf (but still watch out for printf format attacks)gets -> something else entirely. The man page says "programs should NEVER use gets()". parent danielweber 12 years ago
strcpy -> strncpy (or strlcpy on BSD)
strcat -> strncat (or strlcat on BSD)
sprintf -> snprintf (but still watch out for printf format attacks)
gets -> something else entirely. The man page says "programs should NEVER use gets()".