Author: melifaro
Date: Sun Apr 12 15:16:34 2020
New Revision: 359824
URL: https://svnweb.freebsd.org/changeset/base/359824
Log:
Fix string format error missed in r359823.
Modified:
head/usr.bin/netstat/nhops.c
Modified: head/usr.bin/netstat/nhops.c
==============================================================================
--- head/usr.bin/netstat/nhops.c Sun Apr 12 14:30:00 2020
(r359823)
+++ head/usr.bin/netstat/nhops.c Sun Apr 12 15:16:34 2020
(r359824)
@@ -219,7 +219,7 @@ nhop_map_update(struct nhop_map *map, uint32_t idx, ch
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;
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"