Replace strcpy()+strcat() song and dance by a single sprintf().