aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/netstat
diff options
context:
space:
mode:
authorAlexander V. Chernikov <melifaro@FreeBSD.org>2020-04-12 15:16:34 +0000
committerAlexander V. Chernikov <melifaro@FreeBSD.org>2020-04-12 15:16:34 +0000
commitd303324bad89623af404f4815b7bb176ac6888b4 (patch)
tree014a7a33448e74450d476fdfe985be99b01ba413 /usr.bin/netstat
parenta666325282eaed4b044459d121f339b2d6d0224b (diff)
downloadsrc-d303324bad89623af404f4815b7bb176ac6888b4.tar.gz
src-d303324bad89623af404f4815b7bb176ac6888b4.zip
Fix string format error missed in r359823.
Notes
Notes: svn path=/head/; revision=359824
Diffstat (limited to 'usr.bin/netstat')
-rw-r--r--usr.bin/netstat/nhops.c2
1 files changed, 1 insertions, 1 deletions
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;