From: Ruben Kerkhof Date: Sat, 23 Apr 2016 09:30:57 +0000 (+0200) Subject: openvpn plugin: use sizeof(*pointer) instead of sizeof(type) X-Git-Tag: collectd-5.6.0~329^2~19 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=afe1ccb363ac6112a82eb596b205d39180b7a505;p=collectd.git openvpn plugin: use sizeof(*pointer) instead of sizeof(type) --- diff --git a/src/openvpn.c b/src/openvpn.c index f10b1746..9490ac8b 100644 --- a/src/openvpn.c +++ b/src/openvpn.c @@ -712,7 +712,7 @@ static int openvpn_config (const char *key, const char *value) temp->version = status_version; temp->name = status_name; - vpn_list = realloc (vpn_list, (vpn_num + 1) * sizeof (vpn_status_t *)); + vpn_list = realloc (vpn_list, (vpn_num + 1) * sizeof (*vpn_list)); if (vpn_list == NULL) { char errbuf[1024];