Commit dea7f1e5 authored by Paul Eggert's avatar Paul Eggert

* buffer.c (Fgenerate_new_buffer_name): Fix sprintf format mismatch.

parent 76046526
2012-07-04 Paul Eggert <eggert@cs.ucla.edu>
* buffer.c (Fgenerate_new_buffer_name): Fix sprintf format mismatch.
2012-07-04 Dmitry Antipov <dmantipov@yandex.ru>
* buffer.c (Fgenerate_new_buffer_name): Fix type mismatch.
......
......@@ -859,7 +859,7 @@ is first appended to NAME, to speed up finding a non-existent buffer. */)
if (!strncmp (SSDATA (name), " ", 1)) /* see bug#1229 */
{
/* Note fileio.c:make_temp_name does random differently. */
sprintf (number, "-%"pD"d", XFASTINT (Frandom (make_number (999999))));
sprintf (number, "-%"pI"d", XFASTINT (Frandom (make_number (999999))));
tem2 = concat2 (name, build_string (number));
tem = Fget_buffer (tem2);
if (NILP (tem))
......
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