Fix string format error missed in r359823.

This commit is contained in:
Alexander V. Chernikov 2020-04-12 15:16:34 +00:00
parent a666325282
commit d303324bad
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=359824

View File

@ -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;