diff options
author | Wim Taymans <wtaymans@redhat.com> | 2020-08-04 12:05:56 +0200 |
---|---|---|
committer | Wim Taymans <wtaymans@redhat.com> | 2020-08-04 12:05:56 +0200 |
commit | 77bd687bac833055b82e2bb6137e2be5fcb77d21 (patch) | |
tree | 4475d8cb1cf12cc6ffb3018b9a063d8873ceaba3 | |
parent | 007c50df56da156b11c527ccd664f0cf1679a33f (diff) |
acp: fix size of array
-rw-r--r-- | spa/plugins/alsa/acp/acp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spa/plugins/alsa/acp/acp.c b/spa/plugins/alsa/acp/acp.c index cd33296d..943ed6fb 100644 --- a/spa/plugins/alsa/acp/acp.c +++ b/spa/plugins/alsa/acp/acp.c @@ -317,7 +317,7 @@ static int report_jack_state(snd_mixer_elem_t *melem, unsigned int mask) pa_log_debug("Jack '%s' is now %s", pa_strnull(snd_hctl_elem_get_name(elem)), plugged_in ? "plugged in" : "unplugged"); - size = sizeof(struct temp_port_avail) * pa_hashmap_size(impl->jacks)+1; + size = sizeof(struct temp_port_avail) * (pa_hashmap_size(impl->jacks)+1); tports = tp = alloca(size); memset(tports, 0, size); |