diff options
author | jeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-22 20:24:07 +0000 |
---|---|---|
committer | jeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-22 20:24:07 +0000 |
commit | cf7e592c1d75cd1ffc855667309adcc650112500 (patch) | |
tree | cd4e3f63c4f4d78b82079f34abb43fc17dadcfa2 /base/sys_string_conversions_mac.mm | |
parent | 50dd8bb2e19a67adcef0f3bfbabd935a4e94de3c (diff) | |
download | chromium_src-cf7e592c1d75cd1ffc855667309adcc650112500.zip chromium_src-cf7e592c1d75cd1ffc855667309adcc650112500.tar.gz chromium_src-cf7e592c1d75cd1ffc855667309adcc650112500.tar.bz2 |
Make String Conversion Unittest x-platform + fix a small bug the tests exposed.
Review URL: http://codereview.chromium.org/8067
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3760 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/sys_string_conversions_mac.mm')
-rw-r--r-- | base/sys_string_conversions_mac.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/base/sys_string_conversions_mac.mm b/base/sys_string_conversions_mac.mm index 02a4244..0da99f1 100644 --- a/base/sys_string_conversions_mac.mm +++ b/base/sys_string_conversions_mac.mm @@ -61,7 +61,7 @@ static StringType CFStringToSTLStringWithEncodingT(CFStringRef cfstring, return StringType(); out_buffer[elements - 1] = '\0'; - return StringType(&out_buffer[0]); + return StringType(&out_buffer[0], elements - 1); } // Given an STL string |in| with an encoding specified by |in_encoding|, |