diff options
author | cevans@chromium.org <cevans@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-30 01:47:29 +0000 |
---|---|---|
committer | cevans@chromium.org <cevans@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-30 01:47:29 +0000 |
commit | 2593f780d24210630ae0c9eb97ea1b3dc858c3bb (patch) | |
tree | 271a25c6706fff79c49d1af3603b5436a06b2eb5 /app/clipboard | |
parent | b1ba8f54cf21578eae695dc557b4af854c3a654c (diff) | |
download | chromium_src-2593f780d24210630ae0c9eb97ea1b3dc858c3bb.zip chromium_src-2593f780d24210630ae0c9eb97ea1b3dc858c3bb.tar.gz chromium_src-2593f780d24210630ae0c9eb97ea1b3dc858c3bb.tar.bz2 |
Don't shoehorn a size_t into an int -- especially if the int is used in an subsequent allocation.
BUG=NONE
TEST=NONE
Review URL: http://codereview.chromium.org/518022
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35360 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app/clipboard')
-rw-r--r-- | app/clipboard/clipboard_linux.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/clipboard/clipboard_linux.cc b/app/clipboard/clipboard_linux.cc index eb05331..f36c480 100644 --- a/app/clipboard/clipboard_linux.cc +++ b/app/clipboard/clipboard_linux.cc @@ -169,8 +169,8 @@ void Clipboard::WriteHTML(const char* markup_data, // 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); |