aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2019-03-08 12:05:37 +0000
committerRoss Burton <ross.burton@intel.com>2019-03-08 12:05:38 +0000
commit91511f26a0584230a474d39490805618cbf672da (patch)
treea7f2826b8c144fa5def8d04266cf1d0c45e7508a
parent2db406978d23ae82ce227827035150c1e097fd5d (diff)
downloadmatchbox-window-manager-master.tar.gz
matchbox-window-manager-master.tar.bz2
matchbox-window-manager-master.zip
Fix format type for XML_GetCurrentLineNumberHEADmaster
XML_GetCurrentLineNumber returns a long int, so use %ld instead of %d when formatting. Signed-off-by: Ross Burton <ross.burton@intel.com>
-rw-r--r--src/xml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xml.c b/src/xml.c
index 9791b46..2a48f14 100644
--- a/src/xml.c
+++ b/src/xml.c
@@ -496,7 +496,7 @@ xml_parse_data_dom(XMLParser *parser, char *data)
XML_SetUserData(p, (void *)parser);
if (! XML_Parse(p, data, strlen(data), 1)) {
- fprintf(stderr, "Matchbox: XML Parse error at line %d:\n%s\n",
+ fprintf(stderr, "Matchbox: XML Parse error at line %ld:\n%s\n",
XML_GetCurrentLineNumber(p),
XML_ErrorString(XML_GetErrorCode(p)));
return NULL;