=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/apropos/Attic/apropos.c,v retrieving revision 1.2 retrieving revision 1.3 diff -c -r1.2 -r1.3 *** src/usr.bin/apropos/Attic/apropos.c 1996/06/26 05:31:14 1.2 --- src/usr.bin/apropos/Attic/apropos.c 1996/10/25 06:27:42 1.3 *************** *** 1,4 **** ! /* $OpenBSD: apropos.c,v 1.2 1996/06/26 05:31:14 deraadt Exp $ */ /* $NetBSD: apropos.c,v 1.5 1995/09/04 20:46:20 tls Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: apropos.c,v 1.3 1996/10/25 06:27:42 downsj Exp $ */ /* $NetBSD: apropos.c,v 1.5 1995/09/04 20:46:20 tls Exp $ */ /* *************** *** 44,50 **** #if 0 static char sccsid[] = "@(#)apropos.c 8.8 (Berkeley) 5/4/95"; #else ! static char rcsid[] = "$OpenBSD: apropos.c,v 1.2 1996/06/26 05:31:14 deraadt Exp $"; #endif #endif /* not lint */ --- 44,50 ---- #if 0 static char sccsid[] = "@(#)apropos.c 8.8 (Berkeley) 5/4/95"; #else ! static char rcsid[] = "$OpenBSD: apropos.c,v 1.3 1996/10/25 06:27:42 downsj Exp $"; #endif #endif /* not lint */ *************** *** 149,155 **** if (buildpath) { char hold[MAXPATHLEN + 1]; ! (void)sprintf(hold, "%s/%s", name, _PATH_WHATIS); name = hold; } --- 149,156 ---- if (buildpath) { char hold[MAXPATHLEN + 1]; ! (void)snprintf(hold, sizeof(hold), "%s/%s", name, ! _PATH_WHATIS); name = hold; }