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:
parent
8e7588a267
commit
1f1088188e
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue