aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-07-27 19:05:31 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-07-27 20:26:12 +0530
commit281d7cbc8b99bf2b16a571378bb15623ea1bf7f3 (patch)
treea3d8355d64a475f7fdfd67147d9e0d274f684ef6
parent79af710ac4cd5c698383a54fa27e1be234076aad (diff)
downloadnnn-281d7cbc8b99bf2b16a571378bb15623ea1bf7f3.tar.gz
Minor reformat
-rw-r--r--src/nnn.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 05e1f47..88f7eb8 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -1300,11 +1300,10 @@ static void archive_selection(const char *cmd, const char *archive, const char *
char *buf = (char *)malloc(CMD_LEN_MAX * sizeof(char));
snprintf(buf, CMD_LEN_MAX,
#ifdef __linux__
- "xargs -0 -a %s %s %s",
+ "xargs -0 -a %s %s %s", g_cppath, cmd, archive);
#else
- "cat %s | xargs -0 -o %s %s",
+ "cat %s | xargs -0 -o %s %s", g_cppath, cmd, archive);
#endif
- g_cppath, cmd, archive);
spawn("sh", "-c", buf, curpath, F_NORMAL);
free(buf);
}