summaryrefslogtreecommitdiff
path: root/smu.c
diff options
context:
space:
mode:
Diffstat (limited to 'smu.c')
-rw-r--r--smu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/smu.c b/smu.c
index b6d10fa..e58bcd4 100644
--- a/smu.c
+++ b/smu.c
@@ -207,7 +207,7 @@ dolineprefix(const char *begin, const char *end, int newblock) {
fputs(lineprefix[i].before, stdout);
if(lineprefix[i].search[l-1] == '\n') {
fputc('\n', stdout);
- return l;
+ return l - 1;
}
if(!(buffer = malloc(BUFSIZ)))
eprint("Malloc failed.");