From b2aea5c619ec6bf56a6bf7d3020dc0fde4426c5e Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Mon, 4 Mar 2019 23:37:51 +0530 Subject: [PATCH] Fix directory indicator --- src/nnn.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/nnn.c b/src/nnn.c index 1ebdecdd..4c66529c 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -2098,7 +2098,10 @@ static char *coolsize(off_t size) static char *get_file_sym(mode_t mode) { - static char ind[2] = "\0\0"; + static char ind[2]; + + ind[0] = '\0'; + ind[1] = '\0'; switch (mode & S_IFMT) { case S_IFREG: