summaryrefslogtreecommitdiff
path: root/games/caesar
diff options
context:
space:
mode:
authorPaul Janzen <pjanzen@cvs.openbsd.org>2001-02-17 20:15:01 +0000
committerPaul Janzen <pjanzen@cvs.openbsd.org>2001-02-17 20:15:01 +0000
commit541cb262e526b7415bb94badb53deeb08c633a4d (patch)
treef6a17c348e5c639103f64dd9f3ec509de629fbc0 /games/caesar
parent5dc1778f37a1d6d773ec2209a474d8487b973125 (diff)
Use err() rather than errx() immediately after alloc failure.
Diffstat (limited to 'games/caesar')
-rw-r--r--games/caesar/caesar.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/games/caesar/caesar.c b/games/caesar/caesar.c
index 9cd63673cb9..a02b8e099c4 100644
--- a/games/caesar/caesar.c
+++ b/games/caesar/caesar.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: caesar.c,v 1.7 1998/08/19 07:53:54 pjanzen Exp $ */
+/* $OpenBSD: caesar.c,v 1.8 2001/02/17 20:15:00 pjanzen Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -51,7 +51,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)caesar.c 8.1 (Berkeley) 5/31/93";
#else
-static char rcsid[] = "$OpenBSD: caesar.c,v 1.7 1998/08/19 07:53:54 pjanzen Exp $";
+static char rcsid[] = "$OpenBSD: caesar.c,v 1.8 2001/02/17 20:15:00 pjanzen Exp $";
#endif
#endif /* not lint */
@@ -112,7 +112,7 @@ main(argc, argv)
}
if (!(inbuf = malloc(LINELENGTH)))
- errx(1, "out of memory.");
+ err(1, NULL);
/* adjust frequency table to weight low probs REAL low */
for (i = 0; i < 26; ++i)