aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mixer_plugin.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mixer_plugin.c b/src/mixer_plugin.c
index 3437171..5bea42c 100644
--- a/src/mixer_plugin.c
+++ b/src/mixer_plugin.c
@@ -330,11 +330,11 @@ static int mixer_plug_get_card_info(struct mixer_plug_data *plug_data,
/*TODO: Fill card_info here from snd-card-def */
memset(card_info, 0, sizeof(*card_info));
card_info->card = plug_data->card;
- memcpy(card_info->id, "card_id", sizeof(card_info->id));
- memcpy(card_info->driver, "mymixer-so-name", sizeof(card_info->driver));
- memcpy(card_info->name, "card-name", sizeof(card_info->name));
- memcpy(card_info->longname, "card-name", sizeof(card_info->longname));
- memcpy(card_info->mixername, "mixer-name", sizeof(card_info->mixername));
+ strncpy((char*)card_info->id, "card_id", sizeof(card_info->id));
+ strncpy((char*)card_info->driver, "mymixer-so-name", sizeof(card_info->driver));
+ strncpy((char*)card_info->name, "card-name", sizeof(card_info->name));
+ strncpy((char*)card_info->longname, "card-name", sizeof(card_info->longname));
+ strncpy((char*)card_info->mixername, "mixer-name", sizeof(card_info->mixername));
return 0;
}