The second call to strcat here is generating a segmentation fault, why?
strcat
#include #include #include
Your gets call could have added sufficient characters already to cause undefined behavior at about anytime.