From dea7f1e5a400cfa9a42eef08be86cdc0992660b5 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 3 Jul 2012 22:39:36 -0700 Subject: [PATCH] * buffer.c (Fgenerate_new_buffer_name): Fix sprintf format mismatch. --- src/ChangeLog | 4 ++++ src/buffer.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index d6210b2b336..fdcab515f4f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2012-07-04 Paul Eggert + + * buffer.c (Fgenerate_new_buffer_name): Fix sprintf format mismatch. + 2012-07-04 Dmitry Antipov * buffer.c (Fgenerate_new_buffer_name): Fix type mismatch. diff --git a/src/buffer.c b/src/buffer.c index d9c0796af33..1e68d7d6b74 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -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)) -- 2.39.2