From 6d162956409c0fa394920ba707109afdbff041e5 Mon Sep 17 00:00:00 2001 From: Anastasis Grammenos Date: Fri, 28 Sep 2018 23:23:08 +0300 Subject: fix minor grep nuiscance --- src/actions.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/actions.c b/src/actions.c index 70705e4..e6eb3d3 100644 --- a/src/actions.c +++ b/src/actions.c @@ -213,10 +213,10 @@ int run_SEARCH(UserOpt *opt, Conf *conf) { if (list_size(paths)) { do { FILE *cmd; - char result[4096] = ""; - char command[STR_L] = "grep -H -n "; + char result[STR_L] = ""; + char command[STR_L] = "grep -H -n \""; strcat(command, list_get(opt->args)); - strcat(command, " "); + strcat(command, "\" "); strcat(command, list_get(paths)); cmd = popen(command, "r"); if (cmd == NULL) { -- cgit v1.2.3