strcpy( p, ".mag" ); 
strncpy( p, ".mag", sizeof(filename) - (p - filename) - 1 ); filename[sizeof(filename) - 1] = '\0'; 
static void wrd_load_default_image(){	char	filename[256], *p;		strcpy(filename, current_file_info->filename);	p= strrchr( filename, '.' );	if( p==0 ) return;	strcpy( p, ".mag" );	ctl->cmsg(CMSG_INFO, VERB_VERBOSE,		  "@DEFAULT_LOAD_MAG(%s)", filename);	if( wrd_mag(filename, WRD_NOARG, WRD_NOARG, 1,0)==0 ) //no err		return;			//retry pho file	strcpy(filename, current_file_info->filename);	p= strrchr( filename, '.' );	if( p==0 ) return;	strcpy( p, ".pho" );	wrd_pho(filename);}
4357	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4357/361cc5df1e14516b0a3eef7766539860da9a9721/wrdt_mac.c/buggy/interface/wrdt_mac.c