From 5e3d5acbdbb2ca01e73f02ee9348128c60201345 Mon Sep 17 00:00:00 2001 From: derselbst Date: Tue, 26 Jun 2018 07:43:54 +0200 Subject: [PATCH] prefer FLUID_STRNCPY to strcpy --- src/drivers/fluid_jack.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/drivers/fluid_jack.c b/src/drivers/fluid_jack.c index 23479051..8e005ee6 100644 --- a/src/drivers/fluid_jack.c +++ b/src/drivers/fluid_jack.c @@ -186,11 +186,11 @@ new_fluid_jack_client(fluid_settings_t *settings, int isaudio, void *driver) if(client_name != NULL && client_name[0] != 0) { - FLUID_SNPRINTF(name, 64, "%s", client_name); + FLUID_SNPRINTF(name, sizeof(name), "%s", client_name); } else { - strcpy(name, "fluidsynth"); + FLUID_STRNCPY(name, "fluidsynth", sizeof(name)); } name[63] = '\0';