diff options
author | Sebastien Marie <semarie@cvs.openbsd.org> | 2019-10-03 07:23:47 +0000 |
---|---|---|
committer | Sebastien Marie <semarie@cvs.openbsd.org> | 2019-10-03 07:23:47 +0000 |
commit | c4076cad3b40323b1f22e0c682186813618a4b32 (patch) | |
tree | 8aba220e46827747daffbaa8619469ba76c9081a /usr.bin | |
parent | 26f3118db594fb79e73347c75cdfe88b594f6b61 (diff) |
use the right argv element for the error message.
ok martijn@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/snmp/snmpc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/snmp/snmpc.c b/usr.bin/snmp/snmpc.c index f8462c8d0e0..a1eb10ccc02 100644 --- a/usr.bin/snmp/snmpc.c +++ b/usr.bin/snmp/snmpc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: snmpc.c,v 1.11 2019/09/18 09:54:36 martijn Exp $ */ +/* $OpenBSD: snmpc.c,v 1.12 2019/10/03 07:23:46 semarie Exp $ */ /* * Copyright (c) 2019 Martijn van Duren <martijn@openbsd.org> @@ -496,7 +496,7 @@ snmpc_get(int argc, char *argv[]) err(1, "malloc"); for (i = 0; i < argc; i++) { if (smi_string2oid(argv[i], &oid[i]) == -1) - errx(1, "%s: Unknown object identifier", argv[0]); + errx(1, "%s: Unknown object identifier", argv[i]); } if (strcmp(snmp_app->name, "getnext") == 0) { if ((pdu = snmp_getnext(agent, oid, argc)) == NULL) |