From 3091ef5351f3f231d8a027b558c72136e8020d37 Mon Sep 17 00:00:00 2001 From: Daniele Forsi Date: Sun, 2 Apr 2023 16:31:31 +0200 Subject: [PATCH] Remove stray comma Fixes cppcheck error: src/gen_tone.c:580:0: error: failed to expand 'strlcpy', Wrong number of parameters for macro 'strlcpy'. [preprocessorErrorDirective] strlcpy (my_audio_config.adev[0].adevice_out, DEFAULT_ADEVICE, , sizeof(my_audio_config.adev[0].adevice_out)); ^ --- src/gen_tone.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gen_tone.c b/src/gen_tone.c index 3317aa3..4a4025e 100644 --- a/src/gen_tone.c +++ b/src/gen_tone.c @@ -577,7 +577,7 @@ int main () memset (&my_audio_config, 0, sizeof(my_audio_config)); strlcpy (my_audio_config.adev[0].adevice_in, DEFAULT_ADEVICE, sizeof(my_audio_config.adev[0].adevice_in)); - strlcpy (my_audio_config.adev[0].adevice_out, DEFAULT_ADEVICE, , sizeof(my_audio_config.adev[0].adevice_out)); + strlcpy (my_audio_config.adev[0].adevice_out, DEFAULT_ADEVICE, sizeof(my_audio_config.adev[0].adevice_out)); my_audio_config.adev[0].num_channels = 2; audio_open (&my_audio_config);