From fb893977d600f0cb7b61efffef956474f7fea05f Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Tue, 18 Jul 1995 23:59:23 +0000 Subject: [PATCH] (Fformat): Increment total for size of control string. --- src/editfns.c | 3 +++ 1 file changed, 3 insertions(+) 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) { -- 2.39.2