summaryrefslogtreecommitdiff
path: root/usr.bin/dc/inout.c
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2003-10-18 20:34:27 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2003-10-18 20:34:27 +0000
commit30ae1fa6ae37f74f52225143403f4e3b3aa3f2fd (patch)
tree263deb1348cffa39fcd34a9347f7a0a654356f89 /usr.bin/dc/inout.c
parenta73bcea2b40878486db3c230136d7a82852e99a9 (diff)
err(1, "out of mem") -> err(1, NULL)
Diffstat (limited to 'usr.bin/dc/inout.c')
-rw-r--r--usr.bin/dc/inout.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/dc/inout.c b/usr.bin/dc/inout.c
index 9c4bb0c8da2..e43476d178d 100644
--- a/usr.bin/dc/inout.c
+++ b/usr.bin/dc/inout.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: inout.c,v 1.5 2003/09/30 18:33:35 otto Exp $ */
+/* $OpenBSD: inout.c,v 1.6 2003/10/18 20:34:26 otto Exp $ */
/*
* Copyright (c) 2003, Otto Moerbeek <otto@drijf.net>
@@ -17,7 +17,7 @@
*/
#ifndef lint
-static const char rcsid[] = "$OpenBSD: inout.c,v 1.5 2003/09/30 18:33:35 otto Exp $";
+static const char rcsid[] = "$OpenBSD: inout.c,v 1.6 2003/10/18 20:34:26 otto Exp $";
#endif /* not lint */
#include <ssl/ssl.h>
@@ -260,7 +260,7 @@ get_digit(u_long num, int digits, u_int base)
p[1] = '\0';
} else {
if (asprintf(&p, "%0*lu", digits, num) == -1)
- err(1, "cannot allocate string");
+ err(1, NULL);
}
return p;
}