From 98a026cf8b9d5da7730d5d4d1c88ba35d94771b2 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Wed, 24 Apr 2024 12:06:09 -0400 Subject: ctx: Escape paths when reporting errors in bfs_ctx_free() --- src/ctx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ctx.c') 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; } -- cgit v1.2.3