summaryrefslogtreecommitdiff
path: root/src/editfns.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1995-07-18 23:59:23 +0000
committerRichard M. Stallman <rms@gnu.org>1995-07-18 23:59:23 +0000
commitfb893977d600f0cb7b61efffef956474f7fea05f (patch)
tree430b29466585799109db7a4a7c6999be1dde2dcc /src/editfns.c
parent98fc5c3c8ea6b351a9514a925b7e62499df7c440 (diff)
downloademacs-fb893977d600f0cb7b61efffef956474f7fea05f.tar.gz
(Fformat): Increment total for size of control string.
Diffstat (limited to 'src/editfns.c')
-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.")
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)
{