Merge branch 'obsd-master'

This commit is contained in:
Thomas Adam 2020-06-09 12:01:18 +01:00
commit 208d9449b7

2
utf8.c
View File

@ -129,7 +129,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;