vtfontcvt: correct typo in hex parsing update

PR:		205707
Submitted by:	Dmitry Wagin
MFC with:	349100
Event:		Berlin Devsummit 2019
This commit is contained in:
Ed Maste 2019-06-16 15:14:49 +00:00
parent 08584e2c48
commit 97634938d0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=349111

View File

@ -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;