mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Merge branch 'obsd-master'
This commit is contained in:
		
							
								
								
									
										4
									
								
								client.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								client.c
									
									
									
									
									
								
							@@ -338,6 +338,10 @@ client_main(struct event_base *base, int argc, char **argv, int flags)
 | 
			
		||||
		size = 0;
 | 
			
		||||
		for (i = 0; i < argc; i++)
 | 
			
		||||
			size += strlen(argv[i]) + 1;
 | 
			
		||||
		if (size > MAX_IMSGSIZE - (sizeof *data)) {
 | 
			
		||||
			fprintf(stderr, "command too long\n");
 | 
			
		||||
			return (1);
 | 
			
		||||
		}
 | 
			
		||||
		data = xmalloc((sizeof *data) + size);
 | 
			
		||||
 | 
			
		||||
		/* Prepare command for server. */
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user