From: Arun Prakash Jana Date: Fri, 5 Jul 2019 02:12:52 +0000 (+0530) Subject: Fix #301 X-Git-Tag: v2.6~65 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=c373b4b2793ad0b3719bba9d1a62bb4fe428885e;p=nnn.git Fix #301 --- diff --git a/src/nnn.c b/src/nnn.c index 8b0df44c..8e27608c 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;