[clpbar] Patch display.c and args.c for errors caught by -Werror=format-security

David Cantrell dcantrel at fedoraproject.org
Thu Jun 12 20:18:03 UTC 2014


commit 537c5d88b1d33c27b5e23220835d3fc58ad50b08
Author: David Cantrell <dcantrell at redhat.com>
Date:   Thu Jun 12 16:17:50 2014 -0400

    Patch display.c and args.c for errors caught by -Werror=format-security
    
      (#1106063)

 bar-1.10.9-Werror=format-security.patch |   18 ------------------
 1 files changed, 0 insertions(+), 18 deletions(-)
---
diff --git a/bar-1.10.9-Werror=format-security.patch b/bar-1.10.9-Werror=format-security.patch
index 7824f3d..61857db 100644
--- a/bar-1.10.9-Werror=format-security.patch
+++ b/bar-1.10.9-Werror=format-security.patch
@@ -35,21 +35,3 @@ diff -up bar-1.10.9/display.c.format-security bar-1.10.9/display.c
  		}
  		if (b) {
  			fprintf(stderr, "");
-@@ -702,7 +702,7 @@ int displayEnd(void)
- 
- 	fprintf(stderr, "\n");
- 	if (d.display_summary) {
--		fprintf(stderr, "Copied: %llu%s (%.1f%s)",
-+		fprintf(stderr, "Copied: %lu%s (%.1f%s)",
- 			UINT64_CTYPE(total_count),
- 			total_count_units,
- 			short_count,
-@@ -732,7 +732,7 @@ int displayEnd(void)
- 		fprintf(stderr, "\n");
- 
- 		if ((hours != 0) || (minutes != 0) || (seconds != 0)) {
--			fprintf(stderr, "Throughput: %llu%s (%.1f%s)\n\n",
-+			fprintf(stderr, "Throughput: %lu%s (%.1f%s)\n\n",
- 				UINT64_CTYPE(total_throughput),
- 				total_throughput_units,
- 				short_throughput,


More information about the scm-commits mailing list