bdf2sfd

BDF to SFD converter, allowing to vectorize bitmap fonts
Log | Files | Refs | README | LICENSE

commit 44755270196617254e921a7628f5d9a9278de5e8
parent 0718aa3dbf073ac58461176e1e10528025d1d32c
Author: Frederic Cambus <fred@statdns.com>
Date:   Mon, 20 Jan 2020 23:54:40 +0100

Call memset() to set all font struct fields to zero.

Diffstat:
Msrc/bdftosfd.c | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/bdftosfd.c b/src/bdftosfd.c @@ -110,10 +110,11 @@ main(int argc, char *argv[]) char *token = NULL; char *charname = NULL, *copyright = NULL, *name = NULL, *encoding = NULL; - struct fontinfo font; - int32_t x, y; + struct fontinfo font; + memset(&font, 0, sizeof(struct fontinfo)); + while (fgets(lineBuffer, LINE_LENGTH_MAX, bdfFile)) { if (*lineBuffer) { if (!strncmp(lineBuffer, "FAMILY_NAME ", 12)) {