Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/make don't use strlcpy; it causes bootstrap issues. ...
details: https://anonhg.NetBSD.org/src/rev/a4fafe7502e6
branches: trunk
changeset: 754177:a4fafe7502e6
user: dholland <dholland%NetBSD.org@localhost>
date: Thu Apr 22 20:25:16 2010 +0000
description:
don't use strlcpy; it causes bootstrap issues. (noted by moof)
diffstat:
usr.bin/make/main.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r a77b558858d4 -r a4fafe7502e6 usr.bin/make/main.c
--- a/usr.bin/make/main.c Thu Apr 22 20:05:15 2010 +0000
+++ b/usr.bin/make/main.c Thu Apr 22 20:25:16 2010 +0000
@@ -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);
}
Home |
Main Index |
Thread Index |
Old Index