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

Diff for /src/usr.bin/apropos/Attic/apropos.c between version 1.5 and 1.6

version 1.5, 1997/09/11 11:24:53 version 1.6, 1997/11/30 05:30:36
Line 64 
Line 64 
   
 static int *found, foundman;  static int *found, foundman;
   
   #define MAXLINELEN      8192            /* max line handled */
   
 void apropos __P((char **, char *, int));  void apropos __P((char **, char *, int));
 void lowstr __P((char *, char *));  void lowstr __P((char *, char *));
 int match __P((char *, char *));  int match __P((char *, char *));
Line 140 
Line 142 
         int buildpath;          int buildpath;
 {  {
         char *end, *name, **p;          char *end, *name, **p;
         char buf[LINE_MAX + 1], wbuf[LINE_MAX + 1];          char buf[MAXLINELEN + 1], wbuf[MAXLINELEN + 1];
           char hold[MAXPATHLEN];
   
         for (name = path; name; name = end) {   /* through name list */          for (name = path; name; name = end) {   /* through name list */
                 if ((end = strchr(name, ':')))                  if ((end = strchr(name, ':')))
                         *end++ = '\0';                          *end++ = '\0';
   
                 if (buildpath) {                  if (buildpath) {
                         char hold[MAXPATHLEN + 1];  
   
                         (void)snprintf(hold, sizeof(hold), "%s/%s", name,                          (void)snprintf(hold, sizeof(hold), "%s/%s", name,
                             _PATH_WHATIS);                              _PATH_WHATIS);
                         name = hold;                          name = hold;

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