From: Paul Eggert Date: Sun, 16 Jul 2017 23:22:33 +0000 (-0700) Subject: Use memset, not bzero X-Git-Tag: emacs-26.0.90~518^2~83 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b740b02d2311cb5a3dd61767f824f3bfa770184e;p=emacs.git Use memset, not bzero * src/ftcrfont.c (ftcrfont_glyph_extents): Use memset instead of the (less-portable) bzero. --- diff --git a/src/ftcrfont.c b/src/ftcrfont.c index d72005771ec..9b592e6a740 100644 --- a/src/ftcrfont.c +++ b/src/ftcrfont.c @@ -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)