projects/aports·blob master · refs

17 lines · 432 B

1diff --git a/main.c b/main.c
2index 664acac..d568fb1 100644
3--- a/main.c
4+++ b/main.c
5@@ -588,10 +588,10 @@ static void callback(long inpos, int function){
6 buffer[aheadposition+19]='>';
7 }
8
9- fprintf(stderr,buffer);
10+ fprintf(stderr, "%s", buffer);
11
12 if (logfile != NULL && function==-1) {
13- fprintf(logfile,buffer+1);
14+ fprintf(logfile, "%s", buffer+1);
15 fprintf(logfile,"\n\n");
16 fflush(logfile);
17 }