mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-04 13:30:08 -05:00
control: fix the assert() in snd_ctl_elem_set_bytes
Allow to write to the whole array (512 bytes). Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
15ccbf303d
commit
fdc4c17e1c
1 changed files with 1 additions and 1 deletions
|
|
@ -3108,7 +3108,7 @@ void snd_ctl_elem_value_set_byte(snd_ctl_elem_value_t *obj, unsigned int idx, un
|
|||
void snd_ctl_elem_set_bytes(snd_ctl_elem_value_t *obj, void *data, size_t size)
|
||||
{
|
||||
assert(obj);
|
||||
assert(size < ARRAY_SIZE(obj->value.bytes.data));
|
||||
assert(size <= ARRAY_SIZE(obj->value.bytes.data));
|
||||
memcpy(obj->value.bytes.data, data, size);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue