aboutsummaryrefslogtreecommitdiffstats
path: root/src/fontset.c
diff options
context:
space:
mode:
authorPaul Eggert2011-09-05 13:43:14 -0700
committerPaul Eggert2011-09-05 13:43:14 -0700
commit1dc4aa6d975c9f92cd5c0d0baf5eae89e013fd67 (patch)
tree8c3e07779650c446922a93839c3ecdabb85cdaea /src/fontset.c
parentf4af5137d41b5ff71771028385f89be889dd1315 (diff)
parent697210c4822d4e7be9a81234d2026e5ace724a90 (diff)
downloademacs-1dc4aa6d975c9f92cd5c0d0baf5eae89e013fd67.tar.gz
emacs-1dc4aa6d975c9f92cd5c0d0baf5eae89e013fd67.zip
Merge from trunk.
Diffstat (limited to 'src/fontset.c')
-rw-r--r--src/fontset.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fontset.c b/src/fontset.c
index c8ae1e74848..74a25a1ca04 100644
--- a/src/fontset.c
+++ b/src/fontset.c
@@ -1700,7 +1700,7 @@ FONT-SPEC is a vector, a cons, or a string. See the documentation of
1700static Lisp_Object auto_fontset_alist; 1700static Lisp_Object auto_fontset_alist;
1701 1701
1702/* Number of automatically created fontsets. */ 1702/* Number of automatically created fontsets. */
1703static int num_auto_fontsets; 1703static printmax_t num_auto_fontsets;
1704 1704
1705/* Retun a fontset synthesized from FONT-OBJECT. This is called from 1705/* Retun a fontset synthesized from FONT-OBJECT. This is called from
1706 x_new_font when FONT-OBJECT is used for the default ASCII font of a 1706 x_new_font when FONT-OBJECT is used for the default ASCII font of a
@@ -1727,9 +1727,9 @@ fontset_from_font (Lisp_Object font_object)
1727 alias = intern ("fontset-startup"); 1727 alias = intern ("fontset-startup");
1728 else 1728 else
1729 { 1729 {
1730 char temp[32]; 1730 char temp[sizeof "fontset-auto" + INT_STRLEN_BOUND (printmax_t)];
1731 1731
1732 sprintf (temp, "fontset-auto%d", num_auto_fontsets - 1); 1732 sprintf (temp, "fontset-auto%"pMd, num_auto_fontsets - 1);
1733 alias = intern (temp); 1733 alias = intern (temp);
1734 } 1734 }
1735 fontset_spec = copy_font_spec (font_spec); 1735 fontset_spec = copy_font_spec (font_spec);