aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTaylor Holberton <tay10r@protonmail.com>2020-04-24 13:27:03 -0400
committerGitHub <noreply@github.com>2020-04-24 13:27:03 -0400
commitf1cad9331f0b291b4f2b91e81766f4862071c40c (patch)
treeb3a89fcdcad140ad0ca923463b2f4fa4c0000edb
parent24ac96246da13b968c19fdee6da07a072031c9ba (diff)
parent5c86afcb0233d51d09325146a9f3000631824748 (diff)
Merge pull request #155 from Minecrell/strncpy
tinyalsa: use strncpy instead of memcpy to copy string constant
-rw-r--r--src/mixer_plugin.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/mixer_plugin.c b/src/mixer_plugin.c
index 3437171..389003e 100644
--- a/src/mixer_plugin.c
+++ b/src/mixer_plugin.c
@@ -330,11 +330,6 @@ 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));
return 0;
}