From 9cd89e6580615249cb0dbd8773934b871bc0ddb0 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Sat, 16 Apr 2016 21:44:14 -0700 Subject: [PATCH] GUACAMOLE-25: Allocate proper number of argument entries. --- src/protocols/rdp/audio_input.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/protocols/rdp/audio_input.c b/src/protocols/rdp/audio_input.c index b5c3f968..9d5d5055 100644 --- a/src/protocols/rdp/audio_input.c +++ b/src/protocols/rdp/audio_input.c @@ -69,8 +69,8 @@ void guac_rdp_audio_load_plugin(rdpContext* context) { /* Add "AUDIO_INPUT" channel */ ADDIN_ARGV* args = malloc(sizeof(ADDIN_ARGV)); - args->argc = 1; - args->argv = malloc(sizeof(char**) * 1); + args->argc = 2; + args->argv = malloc(sizeof(char**) * 2); args->argv[0] = strdup("guacai"); args->argv[1] = guac_rdp_ptr_to_string(client); freerdp_dynamic_channel_collection_add(context->settings, args);