From 2593f780d24210630ae0c9eb97ea1b3dc858c3bb Mon Sep 17 00:00:00 2001
From: "cevans@chromium.org"
 <cevans@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Date: Wed, 30 Dec 2009 01:47:29 +0000
Subject: 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
---
 app/clipboard/clipboard_linux.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'app/clipboard')

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);
-- 
cgit v1.1