Procházet zdrojové kódy

Merge branch 'hotfix'

# Conflicts:
#	libs/expat/lib/xmlparse.c
#	source/WinSCP.cbproj

Source commit: fe929e4089d28d62e3d910f92f7018bb2b3b5f19
Martin Prikryl před 3 roky
rodič
revize
3244cdea34
1 změnil soubory, kde provedl 10 přidání a 2 odebrání
  1. 10 2
      libs/expat/lib/xmlparse.c

+ 10 - 2
libs/expat/lib/xmlparse.c

@@ -718,7 +718,10 @@ XML_ParserCreate(const XML_Char *encodingName) {
 
 XML_Parser XMLCALL
 XML_ParserCreateNS(const XML_Char *encodingName, XML_Char nsSep) {
-  XML_Char tmp[2] = {nsSep, 0};
+  // WINSCP
+  XML_Char tmp[2];
+  tmp[0] = nsSep;
+  tmp[1] = 0;
   return XML_ParserCreate_MM(encodingName, NULL, tmp);
 }
 
@@ -1347,7 +1350,10 @@ XML_ExternalEntityParserCreate(XML_Parser oldParser, const XML_Char *context,
      would be otherwise.
   */
   if (parser->m_ns) {
-    XML_Char tmp[2] = {parser->m_namespaceSeparator, 0};
+    // WINSCP
+    XML_Char tmp[2];
+    tmp[0] = parser->m_namespaceSeparator;
+    tmp[1] = 0;
     parser = parserCreate(encodingName, &parser->m_mem, tmp, newDtd);
   } else {
     parser = parserCreate(encodingName, &parser->m_mem, NULL, newDtd);
@@ -7435,6 +7441,7 @@ build_model(XML_Parser parser) {
    *
    * - The algorithm repeats until all target array indices have been processed.
    */
+  { // WINSCP
   XML_Content *dest = ret; /* tree node writing location, moves upwards */
   XML_Content *const destLimit = &ret[dtd->scaffCount];
   XML_Content *jobDest = ret; /* next free writing location in target array */
@@ -7478,6 +7485,7 @@ build_model(XML_Parser parser) {
 
   return ret;
   } // WINSCP
+  } // WINSCP
 }
 
 static ELEMENT_TYPE *