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

Unified Diff: app/clipboard/clipboard_linux.cc

Issue 518022: Don't shoehorn a size_t into an int -- especially if the int is used in an su... (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/trunk/src/
Patch Set: 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: app/clipboard/clipboard_linux.cc
===================================================================
--- app/clipboard/clipboard_linux.cc (revision 35352)
+++ app/clipboard/clipboard_linux.cc (working copy)
@@ -169,8 +169,8 @@
// TODO(estade): We need to expand relative links with |url_data|.
static const char* html_prefix = "<meta http-equiv=\"content-type\" "
"content=\"text/html; charset=utf-8\">";
- int html_prefix_len = strlen(html_prefix);
- int total_len = html_prefix_len + markup_len;
+ size_t html_prefix_len = strlen(html_prefix);
+ size_t total_len = html_prefix_len + markup_len;
char* data = new char[total_len];
snprintf(data, total_len, "%s", html_prefix);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698