summaryrefslogtreecommitdiff
path: root/src/openvpn/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/openvpn/init.c')
-rw-r--r--src/openvpn/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openvpn/init.c b/src/openvpn/init.c
index dfa045b..a785934 100644
--- a/src/openvpn/init.c
+++ b/src/openvpn/init.c
@@ -312,7 +312,7 @@ management_callback_send_cc_message(void *arg,
const char *parameters)
{
struct context *c = (struct context *) arg;
- size_t len = strlen(command) + 1 + sizeof(parameters) + 1;
+ size_t len = strlen(command) + 1 + strlen(parameters) + 1;
if (len > PUSH_BUNDLE_SIZE)
{
return false;