=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/patch/util.c,v retrieving revision 1.9 retrieving revision 1.10 diff -c -r1.9 -r1.10 *** src/usr.bin/patch/util.c 1999/12/04 21:00:03 1.9 --- src/usr.bin/patch/util.c 2003/04/05 17:17:53 1.10 *************** *** 1,7 **** ! /* $OpenBSD: util.c,v 1.9 1999/12/04 21:00:03 provos Exp $ */ #ifndef lint ! static char rcsid[] = "$OpenBSD: util.c,v 1.9 1999/12/04 21:00:03 provos Exp $"; #endif /* not lint */ #include "EXTERN.h" --- 1,7 ---- ! /* $OpenBSD: util.c,v 1.10 2003/04/05 17:17:53 deraadt Exp $ */ #ifndef lint ! static char rcsid[] = "$OpenBSD: util.c,v 1.10 2003/04/05 17:17:53 deraadt Exp $"; #endif /* not lint */ #include "EXTERN.h" *************** *** 340,346 **** *s = '\0'; } ! strcpy(buf, "/bin/mkdir -p "); if (strlcat(buf, tmpbuf, sizeof(buf)) >= sizeof(buf)) fatal2("buffer too small to hold %.20s...\n", tmpbuf); --- 340,346 ---- *s = '\0'; } ! strlcpy(buf, "/bin/mkdir -p ", sizeof buf); if (strlcat(buf, tmpbuf, sizeof(buf)) >= sizeof(buf)) fatal2("buffer too small to hold %.20s...\n", tmpbuf);