1
Description: Fix compilations errors caused by enabling hardening flags.
2
Author: Barry deFreese <bdefreese@debian.org>
3
Index: ddccontrol-0.4.2/src/lib/conf.c
4
===================================================================
5
--- ddccontrol-0.4.2.orig/src/lib/conf.c 2006-06-15 12:45:19.000000000 -0400
6
+++ ddccontrol-0.4.2/src/lib/conf.c 2013-07-01 17:37:02.000000000 -0400
8
rc = xmlTextWriterStartElement(writer, BAD_CAST "monitor");
9
DDCCI_RETURN_IF_RUN(rc < 0, 0, "xmlTextWriterStartElement monitor\n", {xmlFreeTextWriter(writer);})
11
- rc = xmlTextWriterWriteFormatAttribute(writer, BAD_CAST "filename", current->filename);
12
+ rc = xmlTextWriterWriteFormatAttribute(writer, BAD_CAST "filename", "%s", current->filename);
13
DDCCI_RETURN_IF_RUN(rc < 0, 0, "xmlTextWriterWriteFormatAttribute filename\n", {xmlFreeTextWriter(writer);})
15
rc = xmlTextWriterWriteFormatAttribute(writer, BAD_CAST "supported", "%d", current->supported);
16
DDCCI_RETURN_IF_RUN(rc < 0, 0, "xmlTextWriterWriteFormatAttribute supported\n", {xmlFreeTextWriter(writer);})
18
- rc = xmlTextWriterWriteFormatAttribute(writer, BAD_CAST "name", current->name);
19
+ rc = xmlTextWriterWriteFormatAttribute(writer, BAD_CAST "name", "%s", current->name);
20
DDCCI_RETURN_IF_RUN(rc < 0, 0, "xmlTextWriterWriteFormatAttribute name\n", {xmlFreeTextWriter(writer);})
22
rc = xmlTextWriterWriteFormatAttribute(writer, BAD_CAST "digital", "%d", current->digital);