From: jsg Date: Wed, 12 Oct 2022 11:26:05 +0000 (+0000) Subject: use correct type with sizeof X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=9b1abd734797846ab25e964dc1f17d4a90dccd32;p=openbsd use correct type with sizeof ok miod@ claudio@ tb@ --- diff --git a/usr.sbin/bgpd/rde_rib.c b/usr.sbin/bgpd/rde_rib.c index e256376365a..c4321b94cd9 100644 --- a/usr.sbin/bgpd/rde_rib.c +++ b/usr.sbin/bgpd/rde_rib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde_rib.c,v 1.249 2022/09/12 10:03:17 claudio Exp $ */ +/* $OpenBSD: rde_rib.c,v 1.250 2022/10/12 11:26:05 jsg Exp $ */ /* * Copyright (c) 2003, 2004 Claudio Jeker @@ -147,7 +147,7 @@ rib_new(char *name, u_int rtableid, uint16_t flags) if (id >= rib_size) { if ((ribs = recallocarray(ribs, id, id + 8, - sizeof(struct rib))) == NULL) + sizeof(struct rib *))) == NULL) fatal(NULL); rib_size = id + 8; }