shithub: pokecrystal

Download patch

ref: 1f8bc7772bf94fdcfa0b92d5f797e234dd53d475
parent: 60f6430d05cb858df709f6bd87ef02526bb12077
author: yenatch <yenatch@gmail.com>
date: Sat Jun 24 15:32:35 EDT 2017

Fix insecure fprintf

--- a/tools/gfx.c
+++ b/tools/gfx.c
@@ -12,8 +12,8 @@
 }
 
 static void error(char *message) {
-	fprintf(stderr, message);
-	fprintf(stderr, "\n");
+	fputs(message, stderr);
+	fputs("\n", stderr);
 }
 
 struct Options {