[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.1 and 1.4

version 1.1, 1995/10/18 08:44:52 version 1.4, 1997/01/15 23:42:10
Line 1 
Line 1 
   /*      $OpenBSD$      */
 /*      $NetBSD: apropos.c,v 1.5 1995/09/04 20:46:20 tls Exp $      */  /*      $NetBSD: apropos.c,v 1.5 1995/09/04 20:46:20 tls Exp $      */
   
 /*  /*
Line 43 
Line 44 
 #if 0  #if 0
 static char sccsid[] = "@(#)apropos.c   8.8 (Berkeley) 5/4/95";  static char sccsid[] = "@(#)apropos.c   8.8 (Berkeley) 5/4/95";
 #else  #else
 static char rcsid[] = "$NetBSD: apropos.c,v 1.5 1995/09/04 20:46:20 tls Exp $";  static char rcsid[] = "$OpenBSD$";
 #endif  #endif
 #endif /* not lint */  #endif /* not lint */
   
Line 80 
Line 81 
   
         conffile = NULL;          conffile = NULL;
         p_augment = p_path = NULL;          p_augment = p_path = NULL;
         while ((ch = getopt(argc, argv, "C:M:m:P:")) != EOF)          while ((ch = getopt(argc, argv, "C:M:m:P:")) != -1)
                 switch (ch) {                  switch (ch) {
                 case 'C':                  case 'C':
                         conffile = optarg;                          conffile = optarg;
Line 148 
Line 149 
                 if (buildpath) {                  if (buildpath) {
                         char hold[MAXPATHLEN + 1];                          char hold[MAXPATHLEN + 1];
   
                         (void)sprintf(hold, "%s/%s", name, _PATH_WHATIS);                          (void)snprintf(hold, sizeof(hold), "%s/%s", name,
                               _PATH_WHATIS);
                         name = hold;                          name = hold;
                 }                  }
   

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.4