File: 10-gcc.patch

package info (click to toggle)
matroxset 0.4-9
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 204 kB
  • ctags: 835
  • sloc: ansic: 1,817; sh: 24; makefile: 21
file content (24 lines) | stat: -rw-r--r-- 608 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Subject: Gcc 4.6.2 hardened build flags fix
From: Jari Aalto <jari.aalto@cante.net>

--- a/matroxset.c
+++ b/matroxset.c
@@ -335,14 +335,14 @@
 				int ap = 0;
 				for (ptr = vals; ptr->msg; ptr++) {
 					if (vbl.flags & ptr->mask) {
-						if (ap) printf(", ");
-						printf(ptr->msg);
+						if (ap) printf("%s", ", ");
+						printf("%s", ptr->msg);
 						ap = 1;
 					}
 				}
 				if (!ap)
-					printf("none");
-				printf("\n");
+				    printf("%s", "none");
+				printf("%s", "\n");
 			}
 			printf("Field count:       %12u\n", vbl.count);
 			printf("Vertical line:     %12u\n", vbl.vcount);