strcat(current_filename, PATH_STRING); 
strncat(current_filename, PATH_STRING, sizeof(current_filename) - strlen(current_filename) - 1); 
struct timidity_file *open_file(char *name, int decompress, int noise_mode){  struct stat st;  struct timidity_file *tf;  PathList *plp=pathlist;  int l;  open_file_noise_mode = noise_mode;  if (!name || !(*name))    {      if(noise_mode)        ctl->cmsg(CMSG_ERROR, VERB_NORMAL, "Attempted to open nameless file.");      return 0;    }  /* First try the given name */  strncpy(current_filename, url_unexpand_home_dir(name), 1023);  current_filename[1023]='\0';  if(noise_mode)    ctl->cmsg(CMSG_INFO, VERB_DEBUG, "Trying to open %s", current_filename);  stat(current_filename, &st);  if(!S_ISDIR(st.st_mode))    if ((tf=try_to_open(current_filename, decompress)))      return tf;#ifdef __MACOS__  if(errno)#else  if(errno && errno != ENOENT)#endif    {	if(noise_mode)	    ctl->cmsg(CMSG_ERROR, VERB_NORMAL, "%s: %s",		      current_filename, strerror(errno));	return 0;    }  if (!is_abs_path(name))    while (plp)  /* Try along the path then */      {	*current_filename=0;	l=strlen(plp->path);	if(l)	  {	    strcpy(current_filename, plp->path);	    if(!IS_PATH_SEP(current_filename[l-1]) &&	       current_filename[l-1] != '#' &&	       name[0] != '#')		strcat(current_filename, PATH_STRING);	  }	strcat(current_filename, name);	if(noise_mode)	    ctl->cmsg(CMSG_INFO, VERB_DEBUG,		      "Trying to open %s", current_filename);	stat(current_filename, &st);	if(!S_ISDIR(st.st_mode))	  if ((tf=try_to_open(current_filename, decompress)))	    return tf;#ifdef __MACOS__	if(errno)#else	if(errno && errno != ENOENT)#endif	{	    if(noise_mode)		ctl->cmsg(CMSG_ERROR, VERB_NORMAL, "%s: %s",			  current_filename, strerror(errno));	    return 0;	  }	plp=plp->next;      }  /* Nothing could be opened. */  *current_filename=0;  if (noise_mode>=2)      ctl->cmsg(CMSG_ERROR, VERB_NORMAL, "%s: %s", name,		errno ? strerror(errno) : "Can't open file");  return 0;}
4357	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4357/361cc5df1e14516b0a3eef7766539860da9a9721/common.c/clean/timidity/common.c