mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-03 16:46:18 +00:00 
			
		
		
		
	Three small changes from Tiago Cunha:
- Check for truncation when copying path. - Don't need to use a temporary buffer in screen_set_title. - Include strerror in output when connecting to server fails.
This commit is contained in:
		
							
								
								
									
										3
									
								
								client.c
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								client.c
									
									
									
									
									
								
							@@ -232,7 +232,8 @@ client_main(int argc, char **argv, int flags)
 | 
			
		||||
	/* Initialise the client socket and start the server. */
 | 
			
		||||
	fd = client_connect(socket_path, cmdflags & CMD_STARTSERVER);
 | 
			
		||||
	if (fd == -1) {
 | 
			
		||||
		fprintf(stderr, "failed to connect to server\n");
 | 
			
		||||
		fprintf(stderr, "failed to connect to server: %s\n",
 | 
			
		||||
		    strerror(errno));
 | 
			
		||||
		return (1);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user