Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Jun 2019 15:14:50 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r349111 - head/usr.bin/vtfontcvt
Message-ID:  <201906161514.x5GFEokX033758@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Sun Jun 16 15:14:49 2019
New Revision: 349111
URL: https://svnweb.freebsd.org/changeset/base/349111

Log:
  vtfontcvt: correct typo in hex parsing update
  
  PR:		205707
  Submitted by:	Dmitry Wagin
  MFC with:	349100
  Event:		Berlin Devsummit 2019

Modified:
  head/usr.bin/vtfontcvt/vtfontcvt.c

Modified: head/usr.bin/vtfontcvt/vtfontcvt.c
==============================================================================
--- head/usr.bin/vtfontcvt/vtfontcvt.c	Sun Jun 16 15:11:52 2019	(r349110)
+++ head/usr.bin/vtfontcvt/vtfontcvt.c	Sun Jun 16 15:14:49 2019	(r349111)
@@ -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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201906161514.x5GFEokX033758>