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

Diff for /src/usr.bin/mg/fileio.c between version 1.66 and 1.67

version 1.66, 2005/12/13 05:40:33 version 1.67, 2005/12/20 05:04:28
Line 454 
Line 454 
                         return (NULL);                          return (NULL);
         }          }
         /* Now we get the prefix of the name the user typed. */          /* Now we get the prefix of the name the user typed. */
         strlcpy(prefixx, buf, sizeof(prefixx));          if (strlcpy(prefixx, buf, sizeof(prefixx)) >= sizeof(prefixx))
                   return (NULL);
         cp = strrchr(prefixx, '/');          cp = strrchr(prefixx, '/');
         if (cp == NULL)          if (cp == NULL)
                 prefixx[0] = 0;                  prefixx[0] = '\0';
         else          else
                 cp[1] = 0;                  cp[1] = '\0';
   
         preflen = strlen(prefixx);          preflen = strlen(prefixx);
         /* cp is the tail of buf that really needs to be compared. */          /* cp is the tail of buf that really needs to be compared. */

Legend:
Removed from v.1.66  
changed lines
  Added in v.1.67