From b0cd8b7a095f7b3968f55cbf9efe2075c7ee9677 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Tue, 14 Aug 2012 22:38:55 +0200 Subject: Fix length argument to memset(). --- interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'interface.c') diff --git a/interface.c b/interface.c index 7bdd2de6..b63e1121 100644 --- a/interface.c +++ b/interface.c @@ -384,7 +384,7 @@ get_ifinfo(const char *ifname, ifinfo_t *ifinfo) char iname[16]; int mib[6]; - memset(ifinfo, 0, sizeof(ifinfo)); + memset(ifinfo, 0, sizeof(*ifinfo)); /* trim interface name */ -- cgit v1.2.3