nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 379fdf50fa08a27e69e09f43db82362c49381296
parent d5408c4e9f3c0a558a30192322c3a6b8c6562b5d
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Fri,  5 Jul 2019 01:27:46 +0530

Show stat when file has single quote

Diffstat:
Msrc/nnn.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/nnn.c b/src/nnn.c @@ -2440,9 +2440,9 @@ static bool show_stats(const char *fpath, const char *fname, const struct stat * if (fd == -1) return FALSE; - r = xstrlcpy(g_buf, "stat \'", PATH_MAX); + r = xstrlcpy(g_buf, "stat \"", PATH_MAX); r += xstrlcpy(g_buf + r - 1, fpath, PATH_MAX); - g_buf[r - 2] = '\''; + g_buf[r - 2] = '\"'; g_buf[r - 1] = '\0'; DPRINTF_S(g_buf);