Skip to content

Commit 481166e

Browse files
Merge pull request #12 from user-none/master
Fix for issue #11
2 parents f6a3bbe + 8727af8 commit 481166e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/localize.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1373,14 +1373,14 @@ void TY_(ReportAccessWarning)( TidyDocImpl* doc, Node* node, uint code )
13731373
{
13741374
ctmbstr fmt = GetFormatFromCode(code);
13751375
doc->badAccess |= BA_WAI;
1376-
messageNode( doc, TidyAccess, node, fmt );
1376+
messageNode( doc, TidyAccess, node, "%s", fmt );
13771377
}
13781378

13791379
void TY_(ReportAccessError)( TidyDocImpl* doc, Node* node, uint code )
13801380
{
13811381
ctmbstr fmt = GetFormatFromCode(code);
13821382
doc->badAccess |= BA_WAI;
1383-
messageNode( doc, TidyAccess, node, fmt );
1383+
messageNode( doc, TidyAccess, node, "%s", fmt );
13841384
}
13851385

13861386
#endif /* SUPPORT_ACCESSIBILITY_CHECKS */
@@ -1399,7 +1399,7 @@ void TY_(ReportWarning)(TidyDocImpl* doc, Node *element, Node *node, uint code)
13991399
switch (code)
14001400
{
14011401
case NESTED_QUOTATION:
1402-
messageNode(doc, TidyWarning, rpt, fmt);
1402+
messageNode(doc, TidyWarning, rpt, "%s", fmt);
14031403
break;
14041404

14051405
case OBSOLETE_ELEMENT:
@@ -1480,7 +1480,7 @@ void TY_(ReportError)(TidyDocImpl* doc, Node *element, Node *node, uint code)
14801480
case INCONSISTENT_NAMESPACE:
14811481
case DOCTYPE_AFTER_TAGS:
14821482
case DTYPE_NOT_UPPER_CASE:
1483-
messageNode(doc, TidyWarning, rpt, fmt);
1483+
messageNode(doc, TidyWarning, rpt, "%s", fmt);
14841484
break;
14851485

14861486
case COERCE_TO_ENDTAG:
@@ -1499,7 +1499,7 @@ void TY_(ReportError)(TidyDocImpl* doc, Node *element, Node *node, uint code)
14991499
case ENCODING_IO_CONFLICT:
15001500
case MISSING_DOCTYPE:
15011501
case SPACE_PRECEDING_XMLDECL:
1502-
messageNode(doc, TidyWarning, node, fmt);
1502+
messageNode(doc, TidyWarning, node, "%s", fmt);
15031503
break;
15041504

15051505
case TRIM_EMPTY_ELEMENT:
@@ -1548,7 +1548,7 @@ void TY_(ReportFatal)( TidyDocImpl* doc, Node *element, Node *node, uint code)
15481548
{
15491549
case SUSPECTED_MISSING_QUOTE:
15501550
case DUPLICATE_FRAMESET:
1551-
messageNode(doc, TidyError, rpt, fmt);
1551+
messageNode(doc, TidyError, rpt, "%s", fmt);
15521552
break;
15531553

15541554
case UNKNOWN_ELEMENT:

0 commit comments

Comments
 (0)