зеркало из https://github.com/mozilla/gecko-dev.git
Bug 6958. Fix inconsistency between string and string size. a=chofmann.
This commit is contained in:
Родитель
2cdccbece6
Коммит
c6bca9921f
|
@ -1231,10 +1231,12 @@ static const char kRDFAlt[] = "RDF:Alt";
|
|||
|
||||
nsXPIDLCString s;
|
||||
if (NS_SUCCEEDED(aContainer->GetValue( getter_Copies(s) ))) {
|
||||
static const char kIDEquals[] = " ID=\"";
|
||||
|
||||
nsAutoString uri(s);
|
||||
rdf_PossiblyMakeRelative((const char*) docURI, uri);
|
||||
rdf_EscapeAmpersands(uri);
|
||||
rdf_BlockingWrite(aStream, " ID=\"", 9);
|
||||
rdf_BlockingWrite(aStream, kIDEquals, sizeof(kIDEquals) - 1);
|
||||
rdf_BlockingWrite(aStream, uri);
|
||||
rdf_BlockingWrite(aStream, "\"", 1);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче