Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1060)

Unified Diff: chrome/common/libxml_utils.cc

Issue 464064: Add StringPrintV, fix libxml_utils.cc to use it (Closed)
Patch Set: remove wstring version of StringPrintV Created 11 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/string_util.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/libxml_utils.cc
diff --git a/chrome/common/libxml_utils.cc b/chrome/common/libxml_utils.cc
index 8b8e39fee4a5d66252b9e66dfcb4df934e0515ce..f06df72fb249110fbd6e58d65893b47a57eda0fc 100644
--- a/chrome/common/libxml_utils.cc
+++ b/chrome/common/libxml_utils.cc
@@ -35,7 +35,8 @@ void XmlReader::GenericErrorCallback(void* context, const char* msg, ...) {
va_start(args, msg);
XmlReader* reader = static_cast<XmlReader*>(context);
- reader->errors_.append(StringPrintf(msg, args));
+ reader->errors_.append(StringPrintV(msg, args));
+ va_end(args);
}
bool XmlReader::Load(const std::string& input) {
« no previous file with comments | « base/string_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698