[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.3

version 1.1, 1995/10/18 08:44:52 version 1.3, 1996/10/25 06:27:42
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 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.3