diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2003-08-15 22:46:47 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2003-08-15 22:46:47 +0000 |
commit | 57134a8bf6cb70f659cd9d8e29045ef33f5a55fb (patch) | |
tree | b470b265fc9a9566e455c060aee1b5e9dae4e1ef /usr.bin/xargs/xargs.c | |
parent | 397a8284c086e5060176f0dc04fd0ce52509e815 (diff) |
Fix typo (errx vs. err) for malloc failures; Andrey Matveev
Diffstat (limited to 'usr.bin/xargs/xargs.c')
-rw-r--r-- | usr.bin/xargs/xargs.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/xargs/xargs.c b/usr.bin/xargs/xargs.c index 551451dda25..d6638fd27ff 100644 --- a/usr.bin/xargs/xargs.c +++ b/usr.bin/xargs/xargs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xargs.c,v 1.17 2003/07/15 23:30:47 tedu Exp $ */ +/* $OpenBSD: xargs.c,v 1.18 2003/08/15 22:46:46 millert Exp $ */ /* $FreeBSD: xargs.c,v 1.51 2003/05/03 19:09:11 obrien Exp $ */ /*- @@ -45,7 +45,7 @@ static const char copyright[] = #if 0 static const char sccsid[] = "@(#)xargs.c 8.1 (Berkeley) 6/6/93"; #else -static const char rcsid[] = "$OpenBSD: xargs.c,v 1.17 2003/07/15 23:30:47 tedu Exp $"; +static const char rcsid[] = "$OpenBSD: xargs.c,v 1.18 2003/08/15 22:46:46 millert Exp $"; #endif #endif /* not lint */ @@ -243,7 +243,7 @@ main(int argc, char *argv[]) errx(1, "insufficient space for command"); if ((bbp = malloc((size_t)(nline + 1))) == NULL) - errx(1, NULL); + err(1, NULL); ebp = (argp = p = bbp) + nline - 1; for (;;) parse_input(argc, argv); @@ -423,7 +423,7 @@ prerun(int argc, char *argv[]) */ tmp = malloc((argc + 1) * sizeof(char**)); if (tmp == NULL) - errx(1, NULL); + err(1, NULL); tmp2 = tmp; /* @@ -431,7 +431,7 @@ prerun(int argc, char *argv[]) * cannot do strnsubst() to it. */ if ((*tmp++ = strdup(*avj++)) == NULL) - errx(1, NULL); + err(1, NULL); /* * For each argument to utility, if we have not used up @@ -449,7 +449,7 @@ prerun(int argc, char *argv[]) repls--; } else { if ((*tmp = strdup(*tmp)) == NULL) - errx(1, NULL); + err(1, NULL); tmp++; } } |