From d303324bad89623af404f4815b7bb176ac6888b4 Mon Sep 17 00:00:00 2001 From: "Alexander V. Chernikov" Date: Sun, 12 Apr 2020 15:16:34 +0000 Subject: [PATCH] Fix string format error missed in r359823. --- usr.bin/netstat/nhops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/netstat/nhops.c b/usr.bin/netstat/nhops.c index d62eb7290f5c..63addb00a685 100644 --- a/usr.bin/netstat/nhops.c +++ b/usr.bin/netstat/nhops.c @@ -219,7 +219,7 @@ nhop_map_update(struct nhop_map *map, uint32_t idx, char *gw, char *ifname) sz = new_size * (sizeof(struct nhop_entry)); if ((map->ptr = realloc(map->ptr, sz)) == NULL) - errx(2, "realloc(%lu) failed", sz); + errx(2, "realloc(%zu) failed", sz); memset(&map->ptr[map->size], 0, (new_size - map->size) * sizeof(struct nhop_entry)); map->size = new_size;