[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.82 and 1.83

version 1.82, 2008/09/15 16:11:35 version 1.83, 2011/01/21 18:58:55
Line 529 
Line 529 
   
         while ((dent = readdir(dirp)) != NULL) {          while ((dent = readdir(dirp)) != NULL) {
                 int isdir;                  int isdir;
                   if (strncmp(cp, dent->d_name, len) != 0)
                 if (dent->d_namlen < len || memcmp(cp, dent->d_name, len) != 0)  
                         continue;                          continue;
   
                 isdir = 0;                  isdir = 0;
                 if (dent->d_type == DT_DIR) {                  if (dent->d_type == DT_DIR) {
                         isdir = 1;                          isdir = 1;

Legend:
Removed from v.1.82  
changed lines
  Added in v.1.83