svn commit: r359824 - head/usr.bin/netstat

Alexander V. Chernikov melifaro at FreeBSD.org
Sun Apr 12 15:16:35 UTC 2020


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;


More information about the svn-src-head mailing list