blob: 73564e9b4e010bfbf16e2b9fcec3aa5638e815e3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
Patch for CAN-2005-3150 provided by Ulf Harnhammar.
--- src/log.c.old 2005-10-02 03:49:34.495603240 +0200
+++ src/log.c 2005-10-02 03:50:18.064979688 +0200
@@ -183,7 +183,7 @@ void log_flush(void)
fp=log_open();
for(i=0;i<max_log;i++){
- fprintf(fp,log_str[i]);
+ fprintf(fp,"%s",log_str[i]);
free(log_str[i]);
}
free(log_str);
|