Commit f7741ce9 authored by Andreas Schwab's avatar Andreas Schwab
Browse files

(font_unparse_fcname): Fix use of uninitialized variable.

parent 1f625c6c
2008-12-02 Andreas Schwab <schwab@suse.de>
* font.c (font_unparse_fcname): Fix use of uninitialized variable.
* doprnt.c (doprnt1): Fix size of charbuf.
2008-12-02 Chong Yidong <cyd@stupidchicken.com>
......
......@@ -1598,7 +1598,6 @@ font_unparse_fcname (font, pixel_size, name, nbytes)
Lisp_Object family, foundry;
Lisp_Object tail, val;
int point_size;
int dpi;
int i, len = 1;
char *p;
Lisp_Object styles[3];
......@@ -1653,7 +1652,7 @@ font_unparse_fcname (font, pixel_size, name, nbytes)
}
if (INTEGERP (AREF (font, FONT_DPI_INDEX)))
len += sprintf (work, ":dpi=%d", dpi);
len += sprintf (work, ":dpi=%d", XINT (AREF (font, FONT_DPI_INDEX)));
if (INTEGERP (AREF (font, FONT_SPACING_INDEX)))
len += strlen (":spacing=100");
if (INTEGERP (AREF (font, FONT_AVGWIDTH_INDEX)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment