aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/editfns.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/editfns.c b/src/editfns.c
index 6a9e2d80013..4a92eb8b6f2 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -1879,6 +1879,9 @@ Use %% to put a single % into the output.")
1879 strings[i++] = XSTRING (args[n])->data; 1879 strings[i++] = XSTRING (args[n])->data;
1880 } 1880 }
1881 1881
1882 /* Make room in result for all the non-%-codes in the control string. */
1883 total += XSTRING (args[0])->size;
1884
1882 /* Format it in bigger and bigger buf's until it all fits. */ 1885 /* Format it in bigger and bigger buf's until it all fits. */
1883 while (1) 1886 while (1)
1884 { 1887 {