diff --git a/function.c b/function.c index 541c4ac8..993667fd 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++ = ' ';