summaryrefslogtreecommitdiffstats
path: root/src/ctx.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-04-24 12:06:09 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-04-24 12:06:09 -0400
commit98a026cf8b9d5da7730d5d4d1c88ba35d94771b2 (patch)
tree31543a42e0736aa1a2d4a19dff10d637a97193b4 /src/ctx.c
parent4a802da8d598c6fe3317e186b64a0b020cc96f01 (diff)
downloadbfs-98a026cf8b9d5da7730d5d4d1c88ba35d94771b2.tar.xz
ctx: Escape paths when reporting errors in bfs_ctx_free()
Diffstat (limited to 'src/ctx.c')
-rw-r--r--src/ctx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ctx.c b/src/ctx.c
index f5b28c7..aa73b35 100644
--- a/src/ctx.c
+++ b/src/ctx.c
@@ -237,7 +237,7 @@ int bfs_ctx_free(struct bfs_ctx *ctx) {
if (bfs_ctx_fclose(ctx, ctx_file) != 0) {
if (cerr) {
- bfs_error(ctx, "'%s': %m.\n", ctx_file->path);
+ bfs_error(ctx, "%pq: %m.\n", ctx_file->path);
}
ret = -1;
}