diff options
author | tjr <tjr@FreeBSD.org> | 2002-07-05 09:28:13 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2002-07-05 09:28:13 +0000 |
commit | 3594350f009e160416b2900b05edbeec5b9b1741 (patch) | |
tree | 57ff142a33e9fbf09059bded7592ee7b820b3bff /usr.bin/tr/str.c | |
parent | a651b056f9af4d848fbf5081a81e873a6facec95 (diff) | |
download | FreeBSD-src-3594350f009e160416b2900b05edbeec5b9b1741.zip FreeBSD-src-3594350f009e160416b2900b05edbeec5b9b1741.tar.gz |
Use err instead of errx when malloc fails. "malloc" is not a helpful
error message.
Diffstat (limited to 'usr.bin/tr/str.c')
-rw-r--r-- | usr.bin/tr/str.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/tr/str.c b/usr.bin/tr/str.c index 7f5df8f..fee1824 100644 --- a/usr.bin/tr/str.c +++ b/usr.bin/tr/str.c @@ -202,7 +202,7 @@ genclass(s) errx(1, "unknown class %s", s->str); if ((cp->set = p = malloc((NCHARS + 1) * sizeof(int))) == NULL) - errx(1, "malloc"); + err(1, "malloc"); bzero(p, (NCHARS + 1) * sizeof(int)); for (cnt = 0, func = cp->func; cnt < NCHARS; ++cnt) if ((func)(cnt)) |