From 70d192eb97b532c3a06529324e48cf3ea5f55e22 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Tue, 20 Feb 2018 12:54:55 +1100 Subject: [PATCH] update the sscanf format strings so they match the pointer types --- lib/dns/zone.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/dns/zone.c b/lib/dns/zone.c index e1375b4dbe..a74afcaf53 100644 --- a/lib/dns/zone.c +++ b/lib/dns/zone.c @@ -18682,7 +18682,7 @@ dns_zone_keydone(dns_zone_t *zone, const char *keystr) { kd->all = ISC_FALSE; - n = sscanf(keystr, "%hd/", &keyid); + n = sscanf(keystr, "%hu/", &keyid); if (n == 0U) CHECK(ISC_R_FAILURE); @@ -18692,7 +18692,7 @@ dns_zone_keydone(dns_zone_t *zone, const char *keystr) { else CHECK(ISC_R_FAILURE); - n = sscanf(algstr, "%hhd", &alg); + n = sscanf(algstr, "%hhu", &alg); if (n == 0U) { DE_CONST(algstr, r.base); r.length = strlen(algstr);