aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 7030fea1002..d7adf63c98b 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -850,8 +850,8 @@ it is in the sequence to be tried) even if a buffer with that name exists. */)
850 (register Lisp_Object name, Lisp_Object ignore) 850 (register Lisp_Object name, Lisp_Object ignore)
851{ 851{
852 register Lisp_Object gentemp, tem; 852 register Lisp_Object gentemp, tem;
853 int count; 853 EMACS_INT count;
854 char number[10]; 854 char number[INT_BUFSIZE_BOUND (EMACS_INT) + sizeof "<>"];
855 855
856 CHECK_STRING (name); 856 CHECK_STRING (name);
857 857
@@ -865,7 +865,7 @@ it is in the sequence to be tried) even if a buffer with that name exists. */)
865 count = 1; 865 count = 1;
866 while (1) 866 while (1)
867 { 867 {
868 sprintf (number, "<%d>", ++count); 868 sprintf (number, "<%"pI"d>", ++count);
869 gentemp = concat2 (name, build_string (number)); 869 gentemp = concat2 (name, build_string (number));
870 tem = Fstring_equal (gentemp, ignore); 870 tem = Fstring_equal (gentemp, ignore);
871 if (!NILP (tem)) 871 if (!NILP (tem))
@@ -1969,7 +1969,7 @@ validate_region (register Lisp_Object *b, register Lisp_Object *e)
1969/* Advance BYTE_POS up to a character boundary 1969/* Advance BYTE_POS up to a character boundary
1970 and return the adjusted position. */ 1970 and return the adjusted position. */
1971 1971
1972static int 1972static EMACS_INT
1973advance_to_char_boundary (EMACS_INT byte_pos) 1973advance_to_char_boundary (EMACS_INT byte_pos)
1974{ 1974{
1975 int c; 1975 int c;