1From f4f81bdadb9515938b3b5d13707bd4b9322fd967 Mon Sep 17 00:00:00 2001 2From: Khem Raj <raj.khem@gmail.com> 3Date: Mon, 26 Jun 2017 22:37:13 -0700 4Subject: [PATCH 2/2] Fix printf format errors 5 6error: format not a string literal and no format arguments 7 8Signed-off-by: Khem Raj <raj.khem@gmail.com> 9--- 10 main.c | 4 ++-- 11 1 file changed, 2 insertions(+), 2 deletions(-) 12 13diff --git a/main.c b/main.c 14index 664acac..d568fb1 100644 15--- a/main.c 16+++ b/main.c 17@@ -588,10 +588,10 @@ static void callback(long inpos, int function){ 18 buffer[aheadposition+19]='>'; 19 } 20 21- fprintf(stderr,buffer); 22+ fprintf(stderr, "%s", buffer); 23 24 if (logfile != NULL && function==-1) { 25- fprintf(logfile,buffer+1); 26+ fprintf(logfile, "%s", buffer+1); 27 fprintf(logfile,"\n\n"); 28 fflush(logfile); 29 } 30-- 312.13.2 32 33