From 97634938d05f300270c949c961b5dc4db334622f Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Sun, 16 Jun 2019 15:14:49 +0000 Subject: [PATCH] vtfontcvt: correct typo in hex parsing update PR: 205707 Submitted by: Dmitry Wagin MFC with: 349100 Event: Berlin Devsummit 2019 --- usr.bin/vtfontcvt/vtfontcvt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/vtfontcvt/vtfontcvt.c b/usr.bin/vtfontcvt/vtfontcvt.c index 02d4d1cae050..70ec7cf31812 100644 --- a/usr.bin/vtfontcvt/vtfontcvt.c +++ b/usr.bin/vtfontcvt/vtfontcvt.c @@ -484,7 +484,7 @@ parse_hex(FILE *fp, unsigned int map_idx) "malformed input: broken bitmap, character %06x", curchar); gwidth = width * 2; - gwbytes = howmany(width, 8); + gwbytes = howmany(gwidth, 8); if (chars_per_row < gwbytes * 2 || gwidth <= 8) { gwidth = width; /* Single-width character. */ gwbytes = wbytes;