Bug 6958. Fix inconsistency between string and string size. a=chofmann.

This commit is contained in:
waterson%netscape.com 1999-05-24 03:51:56 +00:00
Родитель 2cdccbece6
Коммит c6bca9921f
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -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);
}