Difference for common/porting.c from version 1.3 to 1.4


version 1.3 version 1.4
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_porting_c =   * static char *rcsid_porting_c =
  *   "$Id: porting.c,v 1.3 2000/06/21 05:03:46 cvs Exp $";   *   "$Id: porting.c,v 1.4 2001/02/07 07:54:47 cvs Exp $";
  */   */
   
 /*  /*
Line 199
 
Line 199
  ****************************************************************************/   ****************************************************************************/
   
   
 /* clean_path takes a path and replaces all / with _  
  * We do a strcpy so that we do not change the original string.  
  */  
 char *clean_path(char *file)  
 {  
     static char newpath[MAX_BUF],*cp;  
   
     strncpy(newpath, file, MAX_BUF-1);  
     newpath[MAX_BUF-1]='\0';  
     for (cp=newpath; *cp!='\0'; cp++) {  
  if (*cp=='/') *cp='_';  
     }  
     return newpath;  
 }  
   
   
 /*  /*
  * A replacement of strdup(), since it's not defined at some   * A replacement of strdup(), since it's not defined at some


Legend:
line(s) removed in v.1.3 
line(s) changed
 line(s) added in v.1.4

File made using version 1.98 of cvs2html by leaf at 2011-07-21 17:16