aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-07-05 07:42:52 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-07-05 07:42:52 +0530
commitc373b4b2793ad0b3719bba9d1a62bb4fe428885e (patch)
treeaf9cc0e5c498039f6f867c39939c0d2302a5af7a /src
parentafdfcecb9c757eb52be34f854947de48fd437447 (diff)
downloadnnn-c373b4b2793ad0b3719bba9d1a62bb4fe428885e.tar.gz
Fix #301
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 8b0df44..8e27608 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -2420,7 +2420,9 @@ static char *get_output(char *buf, const size_t bytes, const char *file,
static bool getutil(const char *util)
{
- if (!get_output(g_buf, CMD_LEN_MAX, "which", util, NULL, FALSE))
+ char buf[8];
+
+ if (!get_output(buf, 8, "which", util, NULL, FALSE))
return FALSE;
return TRUE;