зеркало из https://github.com/mozilla/pjs.git
Bug 6958. Fix inconsistency between string and string size. a=chofmann.
This commit is contained in:
Родитель
7b2618f0d5
Коммит
2de8b23615
|
@ -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);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче