X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Ffreeswitch.c;h=e171aa337ab87aab2438cd4c479ebc88bf6a95c4;hb=f0d8297654872643a02b513cd8119ca0bf0ca221;hp=52ff0883a170563844cf65456b0f094bcccc0ba5;hpb=caeaecf1b0815f47b4f208fe54db975aec994ec9;p=collectd.git diff --git a/src/freeswitch.c b/src/freeswitch.c index 52ff0883..e171aa33 100644 --- a/src/freeswitch.c +++ b/src/freeswitch.c @@ -419,7 +419,7 @@ static void fs_submit (const fs_command_t *fc, DEBUG (fm->type); DEBUG ("mv->value"); - //DEBUG (mv->value); + DEBUG (mv->value); value_t values[1]; value_list_t vl = VALUE_LIST_INIT; @@ -448,8 +448,8 @@ static int fs_read_command (fs_command_t *fc) /* can't the following be done nicer ? */ char *line; - line = (char *) malloc (strlen(fc->line)+2); - snprintf(line, strlen(fc->line)+2, "%s\n\n", fc->line); + line = (char *) malloc (strlen(fc->line)+3); + snprintf(line, strlen(fc->line)+3, "%s\n\n", fc->line); esl_send_recv(&esl_handle, line); fc->buffer_fill = 0;