From afe1ccb363ac6112a82eb596b205d39180b7a505 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sat, 23 Apr 2016 11:30:57 +0200 Subject: [PATCH] openvpn plugin: use sizeof(*pointer) instead of sizeof(type) --- src/openvpn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; -- 2.30.2