Use memset, not bzero
* src/ftcrfont.c (ftcrfont_glyph_extents): Use memset instead of the (less-portable) bzero.
This commit is contained in:
parent
59f6972134
commit
b740b02d23
1 changed files with 3 additions and 3 deletions
|
@ -81,9 +81,9 @@ ftcrfont_glyph_extents (struct font *font,
|
|||
ftcrfont_info->metrics =
|
||||
xrealloc (ftcrfont_info->metrics,
|
||||
sizeof (struct font_metrics *) * (row + 1));
|
||||
bzero (ftcrfont_info->metrics + ftcrfont_info->metrics_nrows,
|
||||
(sizeof (struct font_metrics *)
|
||||
* (row + 1 - ftcrfont_info->metrics_nrows)));
|
||||
memset (ftcrfont_info->metrics + ftcrfont_info->metrics_nrows, 0,
|
||||
(sizeof (struct font_metrics *)
|
||||
* (row + 1 - ftcrfont_info->metrics_nrows)));
|
||||
ftcrfont_info->metrics_nrows = row + 1;
|
||||
}
|
||||
if (ftcrfont_info->metrics[row] == NULL)
|
||||
|
|
Loading…
Add table
Reference in a new issue