[BACK]Return to backupfile.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / patch

Diff for /src/usr.bin/patch/backupfile.c between version 1.2 and 1.3

version 1.2, 1996/06/10 11:21:25 version 1.3, 1997/01/17 07:18:02
Line 215 
Line 215 
 {  {
   char *base;    char *base;
   
   base = rindex (name, '/');    base = strrchr (name, '/');
   return base ? base + 1 : name;    return base ? base + 1 : name;
 }  }
   
Line 232 
Line 232 
   char *slash;    char *slash;
   int length;    /* Length of result, not including NUL. */    int length;    /* Length of result, not including NUL. */
   
   slash = rindex (path, '/');    slash = strrchr (path, '/');
   if (slash == 0)    if (slash == 0)
         {          {
           /* File is in the current directory.  */            /* File is in the current directory.  */

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3