summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
authorcraig.schlenter@chromium.org <craig.schlenter@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-11 16:26:07 +0000
committercraig.schlenter@chromium.org <craig.schlenter@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-11 16:26:07 +0000
commitd921e845da88fb6a132dfb702ee787adac2a804a (patch)
treef4859009f7e56662cb938c7ca5a329782b089a25 /chrome/common
parentb075689dda171c2e3a5f5ff99ecdac27ab87f7ab (diff)
downloadchromium_src-d921e845da88fb6a132dfb702ee787adac2a804a.zip
chromium_src-d921e845da88fb6a132dfb702ee787adac2a804a.tar.gz
chromium_src-d921e845da88fb6a132dfb702ee787adac2a804a.tar.bz2
Extensions: Ensure that variable strings passed to ParseError aren't interpreted as format strings.
BUG=31085 Review URL: http://codereview.chromium.org/523131 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35904 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/extensions/update_manifest.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/common/extensions/update_manifest.cc b/chrome/common/extensions/update_manifest.cc
index d6317c1..e3f1b4d 100644
--- a/chrome/common/extensions/update_manifest.cc
+++ b/chrome/common/extensions/update_manifest.cc
@@ -193,7 +193,7 @@ bool UpdateManifest::Parse(const std::string& manifest_xml) {
ScopedXmlDocument document(xmlParseDoc(
reinterpret_cast<const xmlChar*>(manifest_xml.c_str())));
if (!document.get()) {
- ParseError(xml_errors.c_str());
+ ParseError("%s", xml_errors.c_str());
return false;
}
@@ -228,7 +228,7 @@ bool UpdateManifest::Parse(const std::string& manifest_xml) {
Result current;
std::string error;
if (!ParseSingleAppTag(apps[i], gupdate_ns, &current, &error)) {
- ParseError(error.c_str());
+ ParseError("%s", error.c_str());
return false;
}
results_.push_back(current);