Prevent Buffer Overflows be careful writing to buffers length check is mandantory never do any tricks in C that you don't understand strcpy and strcat verboten, use strlcpy and strlcat strlcpy/strlcat are hard to misuse see strlcpy(3) for more information