From c4076cad3b40323b1f22e0c682186813618a4b32 Mon Sep 17 00:00:00 2001 From: Sebastien Marie Date: Thu, 3 Oct 2019 07:23:47 +0000 Subject: use the right argv element for the error message. ok martijn@ --- usr.bin/snmp/snmpc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin') 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 @@ -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) -- cgit v1.2.3