aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index fb77b67..a7fc234 100644
--- a/main.c
+++ b/main.c
@@ -1211,7 +1211,7 @@ static const char *cursors_align_indent(Vis *vis, const char *keys, const Arg *a
}
size_t len = maxcol - mincol;
- char *buf = malloc(len);
+ char *buf = malloc(len+1);
if (!buf)
return keys;
memset(buf, ' ', len);