diff options
author | Anastasis Grammenos <anastasis.gramm2@gmail.com> | 2018-09-28 23:23:08 +0300 |
---|---|---|
committer | Anastasis Grammenos <anastasis.gramm2@gmail.com> | 2018-09-28 23:23:08 +0300 |
commit | 6d162956409c0fa394920ba707109afdbff041e5 (patch) | |
tree | e8ba35a7bc0c4ddc2e18b0ad637f440f0ce4f16a /src/actions.c | |
parent | 0537597c4924e48b18ca79005be2103079b8d009 (diff) | |
download | ck-6d162956409c0fa394920ba707109afdbff041e5.tar.gz ck-6d162956409c0fa394920ba707109afdbff041e5.tar.bz2 ck-6d162956409c0fa394920ba707109afdbff041e5.zip |
fix minor grep nuiscance
Diffstat (limited to 'src/actions.c')
-rw-r--r-- | src/actions.c | 6 |
1 files changed, 3 insertions, 3 deletions
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) { |