Patch level : 12.0 nopatch

Files correlati     :
Commento        :

progetti server
This commit is contained in:
smen 2021-08-03 17:51:36 +02:00
parent 1d483c60d4
commit 77503e70d8

View File

@ -104,8 +104,8 @@ void WriteXmlString(wxOutputStream& outf, const wxChar* str)
if (c < 0 || c > 'z' || strchr("<>/&", c) != NULL) if (c < 0 || c > 'z' || strchr("<>/&", c) != NULL)
{ {
unsigned int n = (unsigned char)c; unsigned int n = (unsigned char)c;
char str[8]; sprintf(str, "&#%02X;", n); char s[8]; sprintf(s, "&#%02X;", n);
outf << str; outf << s;
} }
else else
outf << c; outf << c;
@ -253,7 +253,8 @@ wxString TXmlItem::GetWord(wxInputStream& inf) const
int TXmlItem::ReadTag(wxInputStream& inf) int TXmlItem::ReadTag(wxInputStream& inf)
{ {
wxString str = GetWord(inf); wxString str = GetWord(inf);
if (str.IsEmpty()) if (str.IsEmpty())
return -1; return -1;
@ -307,7 +308,7 @@ int TXmlItem::ReadTag(wxInputStream& inf)
} }
// Ho letto un nome di attributo // Ho letto un nome di attributo
wxString str = GetWord(inf); str = GetWord(inf);
if (str.IsEmpty() || str[0u] != '=') if (str.IsEmpty() || str[0u] != '=')
break; break;
// Leggo il valore dell'attributo // Leggo il valore dell'attributo