ref: 892e7eadc9d5e882162273c8e1c375a55baebe78
parent: 61903609674f2a4ad18abbbcb1d40f5c8beeeaf4
author: Alexei Podtelezhnikov <[email protected]>
date: Tue Sep 21 10:39:21 EDT 2021
* src/bdf/bdflib.c (_bdf_parse_{start,glyphs}): Use appropriate scanner.
--- a/src/bdf/bdflib.c
+++ b/src/bdf/bdflib.c
@@ -1609,7 +1609,7 @@
if ( error )
goto Exit;
- glyph->swidth = (unsigned short)_bdf_atoul( p->list.field[1] );
+ glyph->swidth = _bdf_atous( p->list.field[1] );
p->flags |= BDF_SWIDTH_;
goto Exit;
@@ -1622,7 +1622,7 @@
if ( error )
goto Exit;
- glyph->dwidth = (unsigned short)_bdf_atoul( p->list.field[1] );
+ glyph->dwidth = _bdf_atous( p->list.field[1] );
if ( !( p->flags & BDF_SWIDTH_ ) )
{
@@ -2084,7 +2084,7 @@
unsigned short bpp;
- bpp = (unsigned short)_bdf_atos( p->list.field[4] );
+ bpp = _bdf_atous( p->list.field[4] );
/* Only values 1, 2, 4, 8 are allowed for greymap fonts. */
if ( bpp > 4 )