1
0
Dmitry-Me 11 жил өмнө
parent
commit
6a79c17c87
1 өөрчлөгдсөн 1 нэмэгдсэн , 3 устгасан
  1. 1 3
      tinyxml2.cpp

+ 1 - 3
tinyxml2.cpp

@@ -2203,9 +2203,7 @@ void XMLPrinter::PushText( const char* text, bool cdata )
 
     SealElementIfJustOpened();
     if ( cdata ) {
-        Print( "<![CDATA[" );
-        Print( "%s", text );
-        Print( "]]>" );
+        Print( "<![CDATA[%s]]>", text );
     }
     else {
         PrintString( text, true );