changeset 12603:6d033c8501d4

(Fformat): Increment total for size of control string.
author Richard M. Stallman <rms@gnu.org>
date Tue, 18 Jul 1995 23:59:23 +0000
parents 3c9d53f851f4
children 140e46e751a0
files src/editfns.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/editfns.c	Tue Jul 18 23:52:22 1995 +0000
+++ b/src/editfns.c	Tue Jul 18 23:59:23 1995 +0000
@@ -1879,6 +1879,9 @@
 	  strings[i++] = XSTRING (args[n])->data;
       }
 
+    /* Make room in result for all the non-%-codes in the control string.  */
+    total += XSTRING (args[0])->size;
+
     /* Format it in bigger and bigger buf's until it all fits. */
     while (1)
       {