mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-11 17:04:19 +01:00
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:
parent
08584e2c48
commit
97634938d0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=349111
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user