diff options
author | Alexander V. Chernikov <melifaro@FreeBSD.org> | 2020-04-12 15:16:34 +0000 |
---|---|---|
committer | Alexander V. Chernikov <melifaro@FreeBSD.org> | 2020-04-12 15:16:34 +0000 |
commit | d303324bad89623af404f4815b7bb176ac6888b4 (patch) | |
tree | 014a7a33448e74450d476fdfe985be99b01ba413 /usr.bin/netstat | |
parent | a666325282eaed4b044459d121f339b2d6d0224b (diff) | |
download | src-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.c | 2 |
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; |