From fee585ea1429672922e65a4d3b95a5407143c737 Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 9 Jun 2020 10:37:00 +0000 Subject: [PATCH] Include width in error message. --- utf8.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utf8.c b/utf8.c index 00fd5f09..e3fe570d 100644 --- a/utf8.c +++ b/utf8.c @@ -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;