From 244e0c1122763961cd88566b6d66939c0bff0ba4 Mon Sep 17 00:00:00 2001 From: Marcus Weseloh Date: Fri, 20 Oct 2017 12:08:42 +0200 Subject: [PATCH] Use FLUID_SNPRINTF instead of FLUID_SPRINTF --- src/bindings/fluid_ladspa.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/bindings/fluid_ladspa.c b/src/bindings/fluid_ladspa.c index dd81eba2..d03776cb 100644 --- a/src/bindings/fluid_ladspa.c +++ b/src/bindings/fluid_ladspa.c @@ -342,13 +342,13 @@ static int create_input_output_nodes(fluid_ladspa_fx_t *fx) * LADSPA effects unit. Create left and right input nodes for each audio group. */ for (i = 0; i < fx->audio_groups; i++) { - FLUID_SPRINTF(name, "in%i_L", (i + 1)); + FLUID_SNPRINTF(name, sizeof(name), "in%i_L", (i + 1)); if (new_fluid_ladspa_node(fx, name, FLUID_LADSPA_NODE_AUDIO, FLUID_BUFSIZE) == NULL) { return FLUID_FAILED; } - FLUID_SPRINTF(name, "in%i_R", (i + 1)); + FLUID_SNPRINTF(name, sizeof(name), "in%i_R", (i + 1)); if (new_fluid_ladspa_node(fx, name, FLUID_LADSPA_NODE_AUDIO, FLUID_BUFSIZE) == NULL) { return FLUID_FAILED; @@ -375,13 +375,13 @@ static int create_input_output_nodes(fluid_ladspa_fx_t *fx) */ for (i = 0; i < fx->effects_channels; i++) { - FLUID_SPRINTF(name, "send%i_L", (i + 1)); + FLUID_SNPRINTF(name, sizeof(name), "send%i_L", (i + 1)); if (new_fluid_ladspa_node(fx, name, FLUID_LADSPA_NODE_AUDIO, FLUID_BUFSIZE) == NULL) { return FLUID_FAILED; } - FLUID_SPRINTF(name, "send%i_R", (i + 1)); + FLUID_SNPRINTF(name, sizeof(name), "send%i_R", (i + 1)); if (new_fluid_ladspa_node(fx, name, FLUID_LADSPA_NODE_AUDIO, FLUID_BUFSIZE) == NULL) { return FLUID_FAILED; @@ -393,13 +393,13 @@ static int create_input_output_nodes(fluid_ladspa_fx_t *fx) * left and right output nodes for each audio channel. */ for (i = 0; i < fx->audio_channels; i++) { - FLUID_SPRINTF(name, "out%i_L", (i + 1)); + FLUID_SNPRINTF(name, sizeof(name), "out%i_L", (i + 1)); if (new_fluid_ladspa_node(fx, name, FLUID_LADSPA_NODE_AUDIO, FLUID_BUFSIZE) == NULL) { return FLUID_FAILED; } - FLUID_SPRINTF(name, "out%i_R", (i + 1)); + FLUID_SNPRINTF(name, sizeof(name), "out%i_R", (i + 1)); if (new_fluid_ladspa_node(fx, name, FLUID_LADSPA_NODE_AUDIO, FLUID_BUFSIZE) == NULL) { return FLUID_FAILED;