Commit 955f3ff9 authored by Karl Heuer's avatar Karl Heuer
Browse files

(error): After enlarging buffer, write to it, not to buf.

parent bcb68cff
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment