Avoid some make_formatted_string mallocs

* src/alloc.c (make_formatted_string):
Grow the local buffer from 64 to MAX_ALLOCA bytes.
This commit is contained in:
Paul Eggert 2025-01-27 17:15:47 -08:00
parent 8e7588a267
commit 1f1088188e

View file

@ -2547,7 +2547,7 @@ make_uninit_multibyte_string (EMACS_INT nchars, EMACS_INT nbytes)
Lisp_Object
make_formatted_string (const char *format, ...)
{
char buf[64];
char buf[MAX_ALLOCA];
char *cstr = buf;
ptrdiff_t bufsize = sizeof buf;
va_list ap;