Include width in error message.

pull/2270/head
nicm 2020-06-09 10:37:00 +00:00
parent c60389acbf
commit fee585ea14
1 changed files with 1 additions and 1 deletions

2
utf8.c
View File

@ -130,7 +130,7 @@ utf8_from_data(const struct utf8_data *ud, utf8_char *uc)
u_int index;
if (ud->width > 2)
fatalx("invalid UTF-8 width");
fatalx("invalid UTF-8 width: %u", ud->width);
if (ud->size > UTF8_SIZE)
goto fail;