safe strcpy and strcat macros