From 955f3ff91423c056c393df3bbf90a527d0be70b6 Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Mon, 7 Sep 1998 17:31:29 +0000 Subject: [PATCH] (error): After enlarging buffer, write to it, not to buf. --- src/eval.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/eval.c b/src/eval.c index 7790b6638f2..df7d28e802e 100644 --- a/src/eval.c +++ b/src/eval.c @@ -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); -- 2.39.2