Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/error Use this program's Strdup() instead of strdup(...
details: https://anonhg.NetBSD.org/src/rev/3015f9d62d83
branches: trunk
changeset: 345486:3015f9d62d83
user: dholland <dholland%NetBSD.org@localhost>
date: Mon May 30 16:35:35 2016 +0000
description:
Use this program's Strdup() instead of strdup() so it exits on failure
instead of dumping core.
diffstat:
usr.bin/error/filter.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 04ea1b19a904 -r 3015f9d62d83 usr.bin/error/filter.c
--- a/usr.bin/error/filter.c Mon May 30 16:26:34 2016 +0000
+++ b/usr.bin/error/filter.c Mon May 30 16:35:35 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: filter.c,v 1.17 2016/05/30 16:26:34 dholland Exp $ */
+/* $NetBSD: filter.c,v 1.18 2016/05/30 16:35:35 dholland Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)filter.c 8.1 (Berkeley) 6/6/93";
#endif
-__RCSID("$NetBSD: filter.c,v 1.17 2016/05/30 16:26:34 dholland Exp $");
+__RCSID("$NetBSD: filter.c,v 1.18 2016/05/30 16:35:35 dholland Exp $");
#endif /* not lint */
#include <sys/param.h>
@@ -111,7 +111,7 @@
rewind(fyle);
for (i=0; i < nignored &&
(fgets (inbuffer, sizeof(inbuffer)-1, fyle) != NULL); i++) {
- names_ignored[i] = strdup(inbuffer);
+ names_ignored[i] = Strdup(inbuffer);
(void)substitute(names_ignored[i], '\n', '\0');
}
qsort(names_ignored, nignored, sizeof *names_ignored, lexsort);
Home |
Main Index |
Thread Index |
Old Index