]> git.eshelyaron.com Git - emacs.git/commitdiff
Use memset, not bzero
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 16 Jul 2017 23:22:33 +0000 (16:22 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 16 Jul 2017 23:29:12 +0000 (16:29 -0700)
* src/ftcrfont.c (ftcrfont_glyph_extents): Use memset instead
of the (less-portable) bzero.

src/ftcrfont.c

index d72005771ec9d50bea1aa85cd061f2229a981c33..9b592e6a7404a761b48f8ad4fcdc5705d96201f5 100644 (file)
@@ -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)