From 13aada4b24b45ffdbde80b7cabcfc36e7915d967 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Tue, 19 Jul 2022 07:15:03 -0500 Subject: [PATCH] Mollify -Werror=format-security-theater which is unhappy with: char *reset = 0; if (stuff) reset = "\e[0m"; if (reset) printf(reset); --- toys/pending/diff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toys/pending/diff.c b/toys/pending/diff.c index 68dad05f..6d63bd59 100644 --- a/toys/pending/diff.c +++ b/toys/pending/diff.c @@ -430,7 +430,7 @@ static void print_diff(int a, int b, char c, int *off_set, FILE *fp) } } } - if (reset) printf(reset); + if (reset) xputsn(reset); } static char *concat_file_path(char *path, char *default_path) -- 2.39.2