aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorPaul Eggert2012-07-09 09:06:19 -0700
committerPaul Eggert2012-07-09 09:06:19 -0700
commit26bccfaebf452511a06c2b19414a73b041b17853 (patch)
treee42f399529ee0787a7ee5fee9b47f0de898f4245 /src/alloc.c
parent52331d2c41bf325fd1b22764fdc230d92b68ab85 (diff)
downloademacs-26bccfaebf452511a06c2b19414a73b041b17853.tar.gz
emacs-26bccfaebf452511a06c2b19414a73b041b17853.zip
Minor improvements to make_formatted_string.
* alloc.c (make_formatted_string): Prefer int to ptrdiff_t where int is good enough, as vsprintf returns an int. * lisp.h (make_formatted_string): Add ATTRIBUTE_FORMAT_PRINTF.
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/alloc.c b/src/alloc.c
index 739ec40c45c..a5c2e20d0c9 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -2524,7 +2524,7 @@ Lisp_Object
2524make_formatted_string (char *buf, const char *format, ...) 2524make_formatted_string (char *buf, const char *format, ...)
2525{ 2525{
2526 va_list ap; 2526 va_list ap;
2527 ptrdiff_t length; 2527 int length;
2528 2528
2529 va_start (ap, format); 2529 va_start (ap, format);
2530 length = vsprintf (buf, format, ap); 2530 length = vsprintf (buf, format, ap);