mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-03 16:46:18 +00:00 
			
		
		
		
	Include width in error message.
This commit is contained in:
		
							
								
								
									
										2
									
								
								utf8.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								utf8.c
									
									
									
									
									
								
							@@ -130,7 +130,7 @@ utf8_from_data(const struct utf8_data *ud, utf8_char *uc)
 | 
				
			|||||||
	u_int	index;
 | 
						u_int	index;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (ud->width > 2)
 | 
						if (ud->width > 2)
 | 
				
			||||||
		fatalx("invalid UTF-8 width");
 | 
							fatalx("invalid UTF-8 width: %u", ud->width);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (ud->size > UTF8_SIZE)
 | 
						if (ud->size > UTF8_SIZE)
 | 
				
			||||||
		goto fail;
 | 
							goto fail;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user