Bug 877110 - Fix format-security errors introduced by bug 867656. r=mattwoodrow

This commit is contained in:
Chris Coulson 2013-05-29 19:26:41 -04:00
parent dd786d23f0
commit 978a4888ab
3 changed files with 6 additions and 6 deletions

View File

@ -219,13 +219,13 @@ ContentHostBase::Dump(FILE* aFile,
fprintf(aFile, "<ul>");
}
if (mTextureHost) {
fprintf(aFile, aPrefix);
fprintf(aFile, "%s", aPrefix);
fprintf(aFile, aDumpHtml ? "<li> <a href=" : "Front buffer: ");
DumpTextureHost(aFile, mTextureHost);
fprintf(aFile, aDumpHtml ? "> Front buffer </a></li> " : " ");
}
if (mTextureHostOnWhite) {
fprintf(aFile, aPrefix);
fprintf(aFile, "%s", aPrefix);
fprintf(aFile, aDumpHtml ? "<li> <a href=" : "TextureHost on white: ");
DumpTextureHost(aFile, mTextureHostOnWhite);
fprintf(aFile, aDumpHtml ? "> Front buffer on white </a> </li> " : " ");
@ -736,13 +736,13 @@ ContentHostDoubleBuffered::Dump(FILE* aFile,
fprintf(aFile, "<ul>");
}
if (mBackHost) {
fprintf(aFile, aPrefix);
fprintf(aFile, "%s", aPrefix);
fprintf(aFile, aDumpHtml ? "<li> <a href=" : "Back buffer: ");
DumpTextureHost(aFile, mBackHost);
fprintf(aFile, aDumpHtml ? " >Back buffer</a></li>" : " ");
}
if (mBackHostOnWhite) {
fprintf(aFile, aPrefix);
fprintf(aFile, "%s", aPrefix);
fprintf(aFile, aDumpHtml ? "<li> <a href=" : "Back buffer on white: ");
DumpTextureHost(aFile, mBackHostOnWhite);
fprintf(aFile, aDumpHtml ? " >Back buffer on white</a> </li>" : " ");

View File

@ -189,7 +189,7 @@ ImageHostSingle::Dump(FILE* aFile,
aFile = stderr;
}
if (mTextureHost) {
fprintf(aFile, aPrefix);
fprintf(aFile, "%s", aPrefix);
fprintf(aFile, aDumpHtml ? "<ul><li>TextureHost: "
: "TextureHost: ");
DumpTextureHost(aFile, mTextureHost);

View File

@ -327,7 +327,7 @@ TiledContentHost::Dump(FILE* aFile,
fprintf(aFile, "<ul>");
}
for (;it != stop; ++it) {
fprintf(aFile, aPrefix);
fprintf(aFile, "%s", aPrefix);
fprintf(aFile, aDumpHtml ? "<li> <a href=" : "Tile ");
DumpTextureHost(aFile, it->mTextureHost);
fprintf(aFile, aDumpHtml ? " >Tile</a></li>" : " ");