changeset 23206:a9090a71e969

(error): After enlarging buffer, write to it, not to buf.
author Karl Heuer <kwzh@gnu.org>
date Mon, 07 Sep 1998 17:31:29 +0000
parents 22df54cdb841
children 302eccdcb73c
files src/eval.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/eval.c	Mon Sep 07 13:39:15 1998 +0000
+++ b/src/eval.c	Mon Sep 07 17:31:29 1998 +0000
@@ -1482,7 +1482,7 @@
 
   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 @@
 	}
     }
 
-  string = build_string (buf);
+  string = build_string (buffer);
   if (allocated)
     free (buffer);