mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-19 10:22:27 +00:00
(error): After enlarging buffer, write to it, not to buf.
This commit is contained in:
parent
bcb68cff12
commit
955f3ff914
@ -1482,7 +1482,7 @@ error (m, a1, a2, a3)
|
||||
|
||||
while (1)
|
||||
{
|
||||
int used = doprnt (buf, size, m, m + mlen, 3, args);
|
||||
int used = doprnt (buffer, size, m, m + mlen, 3, args);
|
||||
if (used < size)
|
||||
break;
|
||||
size *= 2;
|
||||
@ -1495,7 +1495,7 @@ error (m, a1, a2, a3)
|
||||
}
|
||||
}
|
||||
|
||||
string = build_string (buf);
|
||||
string = build_string (buffer);
|
||||
if (allocated)
|
||||
free (buffer);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user