diff options
author | Tom Cosgrove <tom@cvs.openbsd.org> | 2004-06-02 14:58:47 +0000 |
---|---|---|
committer | Tom Cosgrove <tom@cvs.openbsd.org> | 2004-06-02 14:58:47 +0000 |
commit | dd49b356647131e67a9a33b8b309f1aacd8d228b (patch) | |
tree | a30cc95ae9bbe08b64496fd96affe9126ab6d03e /usr.bin/du | |
parent | 03059eb507bcbb7954ca7d237037e63b0443d7b5 (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.c | 6 |
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; |