Module Name: src Committed By: dholland Date: Thu Apr 22 20:25:16 UTC 2010
Modified Files: src/usr.bin/make: main.c Log Message: don't use strlcpy; it causes bootstrap issues. (noted by moof) To generate a diff of this commit: cvs rdiff -u -r1.180 -r1.181 src/usr.bin/make/main.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/make/main.c diff -u src/usr.bin/make/main.c:1.180 src/usr.bin/make/main.c:1.181 --- src/usr.bin/make/main.c:1.180 Thu Apr 22 19:11:17 2010 +++ src/usr.bin/make/main.c Thu Apr 22 20:25:16 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: main.c,v 1.180 2010/04/22 19:11:17 sjg Exp $ */ +/* $NetBSD: main.c,v 1.181 2010/04/22 20:25:16 dholland Exp $ */ /* * Copyright (c) 1988, 1989, 1990, 1993 @@ -69,7 +69,7 @@ */ #ifndef MAKE_NATIVE -static char rcsid[] = "$NetBSD: main.c,v 1.180 2010/04/22 19:11:17 sjg Exp $"; +static char rcsid[] = "$NetBSD: main.c,v 1.181 2010/04/22 20:25:16 dholland Exp $"; #else #include <sys/cdefs.h> #ifndef lint @@ -81,7 +81,7 @@ #if 0 static char sccsid[] = "@(#)main.c 8.3 (Berkeley) 3/19/94"; #else -__RCSID("$NetBSD: main.c,v 1.180 2010/04/22 19:11:17 sjg Exp $"); +__RCSID("$NetBSD: main.c,v 1.181 2010/04/22 20:25:16 dholland Exp $"); #endif #endif /* not lint */ #endif @@ -1974,7 +1974,7 @@ } } if (pattern[0] == '/') { - strlcpy(tfile, pattern, sizeof(tfile)); + snprintf(tfile, sizeof(tfile), "%s", pattern); } else { snprintf(tfile, sizeof(tfile), "%s%s", tmpdir, pattern); }