blob: ea305593847bee16bc0dc4c09a68d986c4a90f56 [file] [log] [blame]
Brad Bishop6e60e8b2018-02-01 10:27:11 -05001From 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
Patrick Williams8e7b46e2023-05-01 14:19:06 -05008Upstream-Status: Pending
Brad Bishop6e60e8b2018-02-01 10:27:11 -05009Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11 main.c | 4 ++--
12 1 file changed, 2 insertions(+), 2 deletions(-)
13
14diff --git a/main.c b/main.c
15index 664acac..d568fb1 100644
16--- a/main.c
17+++ b/main.c
18@@ -588,10 +588,10 @@ static void callback(long inpos, int function){
19 buffer[aheadposition+19]='>';
20 }
21
22- fprintf(stderr,buffer);
23+ fprintf(stderr, "%s", buffer);
24
25 if (logfile != NULL && function==-1) {
26- fprintf(logfile,buffer+1);
27+ fprintf(logfile, "%s", buffer+1);
28 fprintf(logfile,"\n\n");
29 fflush(logfile);
30 }
31--
322.13.2
33