aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-01-18 09:44:23 +0100
committerThomas Voss <mail@thomasvoss.com> 2024-01-18 09:44:23 +0100
commitd807ba646948eb178ee92c684578dd96e94873fd (patch)
treef3354adeb47c824b34ad7d27d61f654ff4a94520
parent7e421156c08d73c638428b3db79eb3063e53ca8f (diff)
Call wordexp() with WRDE_NOCMD
-rw-r--r--cbs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cbs.h b/cbs.h
index 986cccc..b94f7b7 100644
--- a/cbs.h
+++ b/cbs.h
@@ -781,7 +781,7 @@ pcquery(struct strv *vec, char *lib, int flags)
/* Remove trailing newline */
p[n - 1] = 0;
- switch (wordexp(p, &we, 0)) {
+ switch (wordexp(p, &we, WRDE_NOCMD)) {
case WRDE_BADCHAR:
case WRDE_BADVAL:
case WRDE_SYNTAX: