diff options
author | Martijn van Duren <martijn@cvs.openbsd.org> | 2020-05-31 20:38:29 +0000 |
---|---|---|
committer | Martijn van Duren <martijn@cvs.openbsd.org> | 2020-05-31 20:38:29 +0000 |
commit | 78443619e7d8cf414d7eece2de1f8adaa2b8c449 (patch) | |
tree | 15a94675872bb8852a9194226f2207d50e02e550 | |
parent | f39862bd815ebbf8e461f7471ca13ef253aa79e9 (diff) |
OIDs are unsigned. Reflect this when printing them.
-rw-r--r-- | usr.bin/snmp/smi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/snmp/smi.c b/usr.bin/snmp/smi.c index 9d79452fc3c..e6955095a3e 100644 --- a/usr.bin/snmp/smi.c +++ b/usr.bin/snmp/smi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: smi.c,v 1.8 2020/05/19 13:41:01 martijn Exp $ */ +/* $OpenBSD: smi.c,v 1.9 2020/05/31 20:38:28 martijn Exp $ */ /* * Copyright (c) 2019 Martijn van Duren <martijn@openbsd.org> @@ -549,7 +549,7 @@ smi_oid2string(struct ber_oid *o, char *buf, size_t len, continue; } } else - snprintf(str, sizeof(str), "%d", key.o_oid[i]); + snprintf(str, sizeof(str), "%u", key.o_oid[i]); if (*buf != '\0' || i == 0) strlcat(buf, ".", len); strlcat(buf, str, len); |