cleaning up unsafe strcpy and strcat calls.