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

Unified Diff: chrome/browser/bug_report_util.cc

Issue 339059: Add compiler-specific "examine printf format" attributes to printfs. (Closed)
Patch Set: cleanups Created 11 years, 1 month 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
Index: chrome/browser/bug_report_util.cc
diff --git a/chrome/browser/bug_report_util.cc b/chrome/browser/bug_report_util.cc
index 5db9e48d072c0f0181bf3a6f91d918315a65b886..c4e7a84b077dd19c36cf9eea2b149d11846e3ff9 100644
--- a/chrome/browser/bug_report_util.cc
+++ b/chrome/browser/bug_report_util.cc
@@ -188,7 +188,7 @@ void BugReportUtil::SendReport(Profile* profile,
post_body.append("Content-Disposition: form-data; name=\"screenshot\"; "
"filename=\"screenshot.png\"\r\n");
post_body.append("Content-Type: application/octet-stream\r\n");
- post_body.append(StringPrintf("Content-Length: %lu\r\n\r\n",
+ post_body.append(StringPrintf("Content-Length: %d\r\n\r\n",
png_data_length));
post_body.append(png_data, png_data_length);
post_body.append("\r\n");

Powered by Google App Engine
This is Rietveld 408576698