Commit ba57de9b authored by Wim Taymans's avatar Wim Taymans
Browse files

pulse: fix size calculation

parent 9c8279aa
Pipeline #162312 passed with stages
in 1 minute and 24 seconds
......@@ -1245,7 +1245,7 @@ static void card_callback(struct card_data *d)
n_profiles = g->card_info.n_profiles;
i->profiles = alloca(sizeof(pa_card_profile_info) * n_profiles);
i->profiles2 = alloca(sizeof(pa_card_profile_info2 *) * n_profiles + 1);
i->profiles2 = alloca(sizeof(pa_card_profile_info2 *) * (n_profiles + 1));
i->n_profiles = 0;
pw_log_debug("context %p: info for %d", g->context, g->id);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment