mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	pass the complete buffer size to snprintf
There is no reason to pass size-1, snprintf will always put a \0 at the end.
This commit is contained in:
		
							parent
							
								
									41063578a5
								
							
						
					
					
						commit
						2b44f42845
					
				
					 13 changed files with 27 additions and 27 deletions
				
			
		| 
						 | 
				
			
			@ -636,7 +636,7 @@ const char *
 | 
			
		|||
jack_get_version_string(void)
 | 
			
		||||
{
 | 
			
		||||
	static char name[1024];
 | 
			
		||||
	snprintf(name, sizeof(name)-1, "3.0.0.0 (using PipeWire %s)", pw_get_library_version());
 | 
			
		||||
	snprintf(name, sizeof(name), "3.0.0.0 (using PipeWire %s)", pw_get_library_version());
 | 
			
		||||
	return name;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue