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(-)
From 9ed77d477c2ccbcd3a05b7af34d40bf8ec9fd1f4 Mon Sep 17 00:00:00 2001
From: Elliott Hughes <e...@google.com>
Date: Mon, 9 Jul 2018 14:54:55 -0700
Subject: [PATCH] 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(-)

diff --git a/toys/pending/diff.c b/toys/pending/diff.c
index 2e0ff92..ea11ba2 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)
-- 
2.18.0.203.gfac676dfb9-goog

_______________________________________________
Toybox mailing list
Toybox@lists.landley.net
http://lists.landley.net/listinfo.cgi/toybox-landley.net

Reply via email to