summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.bin/snmp/snmpc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/snmp/snmpc.c b/usr.bin/snmp/snmpc.c
index ad8e5d6e157..b0df7f7bdc2 100644
--- a/usr.bin/snmp/snmpc.c
+++ b/usr.bin/snmp/snmpc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: snmpc.c,v 1.4 2019/08/11 17:22:31 martijn Exp $ */
+/* $OpenBSD: snmpc.c,v 1.5 2019/08/11 18:11:10 martijn Exp $ */
/*
* Copyright (c) 2019 Martijn van Duren <martijn@openbsd.org>
@@ -554,7 +554,7 @@ snmpc_trap(int argc, char *argv[])
if (byte >= strl) {
if ((str = recallocarray(str, strl,
byte + 1, 1)) == NULL)
- err(1, NULL);
+ err(1, "malloc");
strl = byte + 1;
}
str[byte] |= 0x80 >> (lval % 8);
@@ -579,7 +579,7 @@ snmpc_trap(int argc, char *argv[])
case 'd':
/* String always shrinks */
if ((str = malloc(strlen(argv[i + 2]))) == NULL)
- err(1, NULL);
+ err(1, "malloc");
tmpstr = argv[i + 2];
strl = 0;
do {
@@ -648,7 +648,7 @@ pastestring:
case 'x':
/* String always shrinks */
if ((str = malloc(strlen(argv[i + 2]))) == NULL)
- err(1, NULL);
+ err(1, "malloc");
tmpstr = argv[i + 2];
strl = 0;
do {