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