mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 13:51:31 +00:00
Fix #301
This commit is contained in:
parent
afdfcecb9c
commit
c373b4b279
|
@ -2420,7 +2420,9 @@ static char *get_output(char *buf, const size_t bytes, const char *file,
|
||||||
|
|
||||||
static bool getutil(const char *util)
|
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 FALSE;
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
Loading…
Reference in a new issue