mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	pacmd: handle multi word commands in argv[] properly
This commit is contained in:
		
							parent
							
								
									5ee4069e9e
								
							
						
					
					
						commit
						aae7054b1c
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -116,7 +116,7 @@ int main(int argc, char*argv[]) {
 | 
			
		|||
            size_t k;
 | 
			
		||||
 | 
			
		||||
            k = PA_MIN(sizeof(ibuf) - ibuf_length, strlen(argv[i]));
 | 
			
		||||
            memcpy(ibuf + ibuf_length, argv[1], k);
 | 
			
		||||
            memcpy(ibuf + ibuf_length, argv[i], k);
 | 
			
		||||
            ibuf_length += k;
 | 
			
		||||
 | 
			
		||||
            if (ibuf_length < sizeof(ibuf)) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue