File: fprintf-format-fix.patch

package info (click to toggle)
juman 7.0-3.10
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 40,528 kB
  • sloc: sh: 10,168; ansic: 9,976; perl: 5,195; makefile: 738
file content (13 lines) | stat: -rw-r--r-- 315 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
Fix fprintf format warning/error, #643415
Steve McIntyre <steve.mcintyre@linaro.org>
--- a/lib/iotool.c
+++ b/lib/iotool.c
@@ -463,7 +463,7 @@ void print_current_time(FILE *fp)
      struct tm	*tp;
 
      time(&t); tp = localtime(&t);
-     fprintf(fp, asctime(tp));
+     fprintf(fp, "%s", asctime(tp));
 }
 
 /*