summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--function.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/function.c b/function.c
index 541c4ac..993667f 100644
--- a/function.c
+++ b/function.c
@@ -423,6 +423,8 @@ expand_function (o, function, text, end)
{
if (buffer[i - 1] == '\n')
buffer[--i] = '\0';
+ else
+ buffer[i] = '\0';
p = buffer;
while ((p = index (p, '\n')) != 0)
*p++ = ' ';