From 05cca08e0ffe15d170d4f8d251be4257dd432617 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Mon, 9 Jul 2018 14:54:55 -0700 Subject: diff: fix build with -Wformat=security. The problem with testing changes on my desktop is that they won't always compile when I try to sync AOSP... --- toys/pending/diff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys/pending/diff.c') diff --git a/toys/pending/diff.c b/toys/pending/diff.c index 2e0ff926..ea11ba29 100644 --- a/toys/pending/diff.c +++ b/toys/pending/diff.c @@ -444,7 +444,7 @@ static void print_diff(int a, int b, char c, int *off_set, FILE *fp) } } } - if (reset) printf(reset); + if (reset) printf("%s", reset); } static char *concat_file_path(char *path, char *default_path) -- cgit v1.2.3