The second call to strcat here is generating a segmentation fault, why?
strcat
#include #include #include
To avoid buffer overflow errors, but use strcat you should to use strncat function.
strncat