Mercurial > emacs
changeset 4909:74ae77c7d742
(x_new_font): xmalloc arg was 1 too small.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Wed, 03 Nov 1993 20:31:49 +0000 |
parents | bca0ff204d70 |
children | 435032be7b12 |
files | src/xterm.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xterm.c Wed Nov 03 20:00:33 1993 +0000 +++ b/src/xterm.c Wed Nov 03 20:31:49 1993 +0000 @@ -4108,7 +4108,7 @@ * sizeof (x_font_table[0]))); } - x_font_table[n_fonts].name = (char *) xmalloc (strlen (fontname)); + x_font_table[n_fonts].name = (char *) xmalloc (strlen (fontname) + 1); bcopy (fontname, x_font_table[n_fonts].name, strlen (fontname) + 1); f->display.x->font = x_font_table[n_fonts++].font = font; }