snprintf replacing strcat