From 1b7f554474552bd6c463b417305562d6d7dfd3d3 Mon Sep 17 00:00:00 2001 From: Dominique Martinet Date: Sat, 30 Jun 2018 16:44:36 +0900 Subject: [PATCH] log_kernel: s/fclose/pclose/ (for popen'd FILE) With recent glibc the functions are strictly identical, but this might not be true for all libc implementations Found through static analysis. --- sway/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sway/main.c b/sway/main.c index a325dc3ad..124f9fbb7 100644 --- a/sway/main.c +++ b/sway/main.c @@ -175,7 +175,7 @@ static void log_kernel() { } free(line); } - fclose(f); + pclose(f); } static void security_sanity_check() {