# HG changeset patch # User Jason Rumney # Date 1065136048 0 # Node ID 6685d28af4a7d646ebd3ebc2eed8661f7dbad215 # Parent 0f3a4331dd8ee3a8ab68575131fd4d12bc68d10b * w32fns.c (w32_load_system_font): Clear all members of FONTP before filling them. * w32bdf.c (w32_load_bdf_font): Likewise. diff -r 0f3a4331dd8e -r 6685d28af4a7 src/ChangeLog --- a/src/ChangeLog Thu Oct 02 10:15:09 2003 +0000 +++ b/src/ChangeLog Thu Oct 02 23:07:28 2003 +0000 @@ -1,3 +1,10 @@ +2003-10-02 Jason Rumney + + * w32fns.c (w32_load_system_font): Clear all members of FONTP before + filling them. + + * w32bdf.c (w32_load_bdf_font): Likewise. + 2003-09-30 Richard M. Stallman * term.c (set_tty_color_mode): Calculate current_mode_spec diff -r 0f3a4331dd8e -r 6685d28af4a7 src/w32bdf.c --- a/src/w32bdf.c Thu Oct 02 10:15:09 2003 +0000 +++ b/src/w32bdf.c Thu Oct 02 23:07:28 2003 +0000 @@ -768,6 +768,7 @@ /* Now fill in the slots of *FONTP. */ BLOCK_INPUT; + bzero (fontp, sizeof (*fontp)); fontp->font = font; fontp->font_idx = dpyinfo->n_fonts; fontp->name = (char *) xmalloc (strlen (fontname) + 1); diff -r 0f3a4331dd8e -r 6685d28af4a7 src/w32fns.c --- a/src/w32fns.c Thu Oct 02 10:15:09 2003 +0000 +++ b/src/w32fns.c Thu Oct 02 23:07:28 2003 +0000 @@ -4784,6 +4784,7 @@ /* Now fill in the slots of *FONTP. */ BLOCK_INPUT; + bzero (fontp, sizeof (*fontp)); fontp->font = font; fontp->font_idx = i; fontp->name = (char *) xmalloc (strlen (fontname) + 1);