[BACK]Return to mandocdb.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/mandocdb.c between version 1.5 and 1.7

version 1.5, 2011/07/15 17:59:29 version 1.7, 2011/11/13 00:53:13
Line 1168  pman_node(MAN_ARGS)
Line 1168  pman_node(MAN_ARGS)
                 }                  }
         }          }
   
         if (pman_node(hash, buf, dbuf, n->child))          for (n = n->child; n; n = n->next)
                 return(1);                  if (pman_node(hash, buf, dbuf, n))
         if (pman_node(hash, buf, dbuf, n->next))                          return(1);
                 return(1);  
   
         return(0);          return(0);
 }  }
Line 1254  ofile_dirbuild(const char *dir, int verb, struct of **
Line 1253  ofile_dirbuild(const char *dir, int verb, struct of **
                 buf[0] = '\0';                  buf[0] = '\0';
                 strlcat(buf, dir, MAXPATHLEN);                  strlcat(buf, dir, MAXPATHLEN);
                 strlcat(buf, "/", MAXPATHLEN);                  strlcat(buf, "/", MAXPATHLEN);
                 strlcat(buf, fn, MAXPATHLEN);                  sz = strlcat(buf, fn, MAXPATHLEN);
                 if (sz >= MAXPATHLEN) {                  if (sz >= MAXPATHLEN) {
                         fprintf(stderr, "%s: Path too long\n", dir);                          fprintf(stderr, "%s: Path too long\n", dir);
                         return(0);                          return(0);
Line 1276  ofile_dirbuild(const char *dir, int verb, struct of **
Line 1275  ofile_dirbuild(const char *dir, int verb, struct of **
                 }                  }
         }          }
   
           closedir(d);
         return(1);          return(1);
 }  }
   

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.7

CVSweb