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

Diff for /mandoc/Attic/apropos.c between version 1.28 and 1.30

version 1.28, 2012/03/24 01:46:25 version 1.30, 2012/03/24 02:18:51
Line 25 
Line 25 
 #include <stdio.h>  #include <stdio.h>
 #include <stdlib.h>  #include <stdlib.h>
 #include <string.h>  #include <string.h>
   #include <unistd.h>
   
 #include "apropos_db.h"  #include "apropos_db.h"
 #include "mandoc.h"  #include "mandoc.h"
Line 142  main(int argc, char *argv[])
Line 143  main(int argc, char *argv[])
         }          }
   
         if (--terms < ressz && res[terms].matched) {          if (--terms < ressz && res[terms].matched) {
                   chdir(paths.paths[res[terms].volume]);
                 strlcpy(path, res[terms].file, PATH_MAX);                  strlcpy(path, res[terms].file, PATH_MAX);
                 usecat = RESTYPE_CAT == res[terms].type;                  usecat = RESTYPE_CAT == res[terms].type;
         }          }

Legend:
Removed from v.1.28  
changed lines
  Added in v.1.30

CVSweb