aboutsummaryrefslogtreecommitdiffstats
path: root/interface.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2012-08-14 22:38:55 +0200
committerMatthias Andree <matthias.andree@gmx.de>2012-08-14 22:38:55 +0200
commitb0cd8b7a095f7b3968f55cbf9efe2075c7ee9677 (patch)
tree9573579096db73535355d74dd06c608ab30d8160 /interface.c
parentc189f6a54f36f5b6f7734303db3cfc52311aab5f (diff)
downloadfetchmail-b0cd8b7a095f7b3968f55cbf9efe2075c7ee9677.tar.gz
fetchmail-b0cd8b7a095f7b3968f55cbf9efe2075c7ee9677.tar.bz2
fetchmail-b0cd8b7a095f7b3968f55cbf9efe2075c7ee9677.zip
Fix length argument to memset().
Diffstat (limited to 'interface.c')
-rw-r--r--interface.c2
1 files changed, 1 insertions, 1 deletions
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 */