mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	sample-util: Fix off-by-one in error check
Patch by jk.illwinter on http://www.pulseaudio.org/ticket/951
This commit is contained in:
		
							parent
							
								
									2568542b18
								
							
						
					
					
						commit
						9083a8f667
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -748,8 +748,8 @@ void pa_volume_memchunk(
 | 
			
		|||
        return;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if (spec->format < 0 || spec->format > PA_SAMPLE_MAX) {
 | 
			
		||||
      pa_log_warn(" Unable to change volume of format %s.", pa_sample_format_to_string(spec->format));
 | 
			
		||||
    if (spec->format < 0 || spec->format >= PA_SAMPLE_MAX) {
 | 
			
		||||
      pa_log_warn("Unable to change volume of format");
 | 
			
		||||
      return;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue