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);
|