diff options
| author | Paul Eggert | 2017-07-16 16:22:33 -0700 |
|---|---|---|
| committer | Paul Eggert | 2017-07-16 16:29:12 -0700 |
| commit | b740b02d2311cb5a3dd61767f824f3bfa770184e (patch) | |
| tree | 73cec263197bb3a2867ab3756b2d820431438006 /src | |
| parent | 59f6972134f312863dc761bf66a954a8036d0d86 (diff) | |
| download | emacs-b740b02d2311cb5a3dd61767f824f3bfa770184e.tar.gz emacs-b740b02d2311cb5a3dd61767f824f3bfa770184e.zip | |
Use memset, not bzero
* src/ftcrfont.c (ftcrfont_glyph_extents): Use memset instead
of the (less-portable) bzero.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ftcrfont.c | 6 |
1 files changed, 3 insertions, 3 deletions
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, | |||
| 81 | ftcrfont_info->metrics = | 81 | ftcrfont_info->metrics = |
| 82 | xrealloc (ftcrfont_info->metrics, | 82 | xrealloc (ftcrfont_info->metrics, |
| 83 | sizeof (struct font_metrics *) * (row + 1)); | 83 | sizeof (struct font_metrics *) * (row + 1)); |
| 84 | bzero (ftcrfont_info->metrics + ftcrfont_info->metrics_nrows, | 84 | memset (ftcrfont_info->metrics + ftcrfont_info->metrics_nrows, 0, |
| 85 | (sizeof (struct font_metrics *) | 85 | (sizeof (struct font_metrics *) |
| 86 | * (row + 1 - ftcrfont_info->metrics_nrows))); | 86 | * (row + 1 - ftcrfont_info->metrics_nrows))); |
| 87 | ftcrfont_info->metrics_nrows = row + 1; | 87 | ftcrfont_info->metrics_nrows = row + 1; |
| 88 | } | 88 | } |
| 89 | if (ftcrfont_info->metrics[row] == NULL) | 89 | if (ftcrfont_info->metrics[row] == NULL) |