mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Merge branch 'obsd-master'
This commit is contained in:
		
							
								
								
									
										2
									
								
								utf8.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								utf8.c
									
									
									
									
									
								
							@@ -134,6 +134,8 @@ utf8_from_data(const struct utf8_data *ud, utf8_char *uc)
 | 
				
			|||||||
	union utf8_map	 m = { .uc = 0 };
 | 
						union utf8_map	 m = { .uc = 0 };
 | 
				
			||||||
	u_int		 offset;
 | 
						u_int		 offset;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if (ud->width == 0)
 | 
				
			||||||
 | 
							goto fail;
 | 
				
			||||||
	if (ud->width != 1 && ud->width != 2)
 | 
						if (ud->width != 1 && ud->width != 2)
 | 
				
			||||||
		fatalx("invalid UTF-8 width");
 | 
							fatalx("invalid UTF-8 width");
 | 
				
			||||||
	if (ud->size == 0)
 | 
						if (ud->size == 0)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user