aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1995-07-18 23:59:23 +0000
committerRichard M. Stallman1995-07-18 23:59:23 +0000
commitfb893977d600f0cb7b61efffef956474f7fea05f (patch)
tree430b29466585799109db7a4a7c6999be1dde2dcc
parent98fc5c3c8ea6b351a9514a925b7e62499df7c440 (diff)
downloademacs-fb893977d600f0cb7b61efffef956474f7fea05f.tar.gz
emacs-fb893977d600f0cb7b61efffef956474f7fea05f.zip
(Fformat): Increment total for size of control string.
-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 {