summaryrefslogtreecommitdiff
path: root/usr.bin/du
diff options
context:
space:
mode:
authorTom Cosgrove <tom@cvs.openbsd.org>2004-06-02 14:58:47 +0000
committerTom Cosgrove <tom@cvs.openbsd.org>2004-06-02 14:58:47 +0000
commitdd49b356647131e67a9a33b8b309f1aacd8d228b (patch)
treea30cc95ae9bbe08b64496fd96affe9126ab6d03e /usr.bin/du
parent03059eb507bcbb7954ca7d237037e63b0443d7b5 (diff)
Don't want text in err() call following malloc failures.
ok henning@
Diffstat (limited to 'usr.bin/du')
-rw-r--r--usr.bin/du/du.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/du/du.c b/usr.bin/du/du.c
index 9d08df612ca..433bb896159 100644
--- a/usr.bin/du/du.c
+++ b/usr.bin/du/du.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: du.c,v 1.14 2003/07/02 21:04:09 deraadt Exp $ */
+/* $OpenBSD: du.c,v 1.15 2004/06/02 14:58:46 tom Exp $ */
/* $NetBSD: du.c,v 1.11 1996/10/18 07:20:35 thorpej Exp $ */
/*
@@ -43,7 +43,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)du.c 8.5 (Berkeley) 5/4/95";
#else
-static char rcsid[] = "$OpenBSD: du.c,v 1.14 2003/07/02 21:04:09 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: du.c,v 1.15 2004/06/02 14:58:46 tom Exp $";
#endif
#endif /* not lint */
@@ -242,7 +242,7 @@ linkchk(FTSENT *p)
if (nfiles == maxfiles && (files = realloc((char *)files,
(u_int)(sizeof(ID) * (maxfiles += 128)))) == NULL)
- err(1, "can't allocate memory");
+ err(1, NULL);
files[nfiles].inode = ino;
files[nfiles].dev = dev;
++nfiles;