mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	pulse: fix size calculation
This commit is contained in:
		
							parent
							
								
									9c8279aa6e
								
							
						
					
					
						commit
						ba57de9b81
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -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);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue