diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/editfns.c | 3 |
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) { |
