summaryrefslogtreecommitdiffstats
path: root/src/color.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2023-07-06 08:59:37 -0400
committerTavian Barnes <tavianator@tavianator.com>2023-07-06 08:59:37 -0400
commit66264f1518d1e19123cca23ec92eace4c7982731 (patch)
tree0968bf87e47541ccfd28bdce7a26b16855641b4d /src/color.c
parent58a36277cfaf95cba8609c1ddc823df2bc9fb60e (diff)
downloadbfs-66264f1518d1e19123cca23ec92eace4c7982731.tar.xz
diag: Shell-escape expression arguments
Diffstat (limited to 'src/color.c')
-rw-r--r--src/color.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/color.c b/src/color.c
index ec14303..2e039f4 100644
--- a/src/color.c
+++ b/src/color.c
@@ -1102,17 +1102,17 @@ static int print_expr(CFILE *cfile, const struct bfs_expr *expr, bool verbose) {
lhs = expr->lhs;
rhs = expr->rhs;
- if (cbuff(cfile, "${red}%s${rs}", expr->argv[0]) < 0) {
+ if (cbuff(cfile, "${red}%pq${rs}", expr->argv[0]) < 0) {
return -1;
}
} else {
- if (cbuff(cfile, "${blu}%s${rs}", expr->argv[0]) < 0) {
+ if (cbuff(cfile, "${blu}%pq${rs}", expr->argv[0]) < 0) {
return -1;
}
}
for (size_t i = 1; i < expr->argc; ++i) {
- if (cbuff(cfile, " ${bld}%s${rs}", expr->argv[i]) < 0) {
+ if (cbuff(cfile, " ${bld}%pq${rs}", expr->argv[i]) < 0) {
return -1;
}
}