| 
					
				 | 
			
			
				@@ -67,12 +67,13 @@ void CheckIfAlreadyRunning(bool &already_running) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	struct sockaddr_un bindInfo; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	memset(&bindInfo, 0, sizeof(sockaddr_un)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	bindInfo.sun_family = AF_LOCAL; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	snprintf(bindInfo.sun_path + 1, sizeof(bindInfo.sun_path) - 1, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		 "%s %d %s", "/com/obsproject", getpid(), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		 App()->GetVersionString().c_str()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	auto bindInfoStrlen = snprintf(bindInfo.sun_path + 1, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				       sizeof(bindInfo.sun_path) - 1, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				       "%s %d %s", "/com/obsproject", getpid(), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				       App()->GetVersionString().c_str()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	int bindErr = bind(uniq, (struct sockaddr *)&bindInfo, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			   sizeof(struct sockaddr_un)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			   sizeof(sa_family_t) + 1 + bindInfoStrlen); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	already_running = bindErr == 0 ? 0 : 1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	if (already_running) { 
			 |