mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-01-19 16:00:51 +00:00
prefer FLUID_STRNCPY to strcpy
This commit is contained in:
parent
2e46df839a
commit
5e3d5acbdb
1 changed files with 2 additions and 2 deletions
|
@ -186,11 +186,11 @@ new_fluid_jack_client(fluid_settings_t *settings, int isaudio, void *driver)
|
||||||
|
|
||||||
if(client_name != NULL && client_name[0] != 0)
|
if(client_name != NULL && client_name[0] != 0)
|
||||||
{
|
{
|
||||||
FLUID_SNPRINTF(name, 64, "%s", client_name);
|
FLUID_SNPRINTF(name, sizeof(name), "%s", client_name);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
strcpy(name, "fluidsynth");
|
FLUID_STRNCPY(name, "fluidsynth", sizeof(name));
|
||||||
}
|
}
|
||||||
|
|
||||||
name[63] = '\0';
|
name[63] = '\0';
|
||||||
|
|
Loading…
Reference in a new issue