| Index: base/clipboard_util.cc
|
| ===================================================================
|
| --- base/clipboard_util.cc (revision 3465)
|
| +++ base/clipboard_util.cc (working copy)
|
| @@ -356,8 +356,7 @@
|
| if (SUCCEEDED(data_object->GetData(GetFileContentFormatZero(), &content))) {
|
| if (TYMED_HGLOBAL == content.tymed) {
|
| ScopedHGlobal<char> data(content.hGlobal);
|
| - // The size includes the trailing NULL byte. We don't want it.
|
| - file_contents->assign(data.get(), data.Size() - 1);
|
| + file_contents->assign(data.get(), data.Size());
|
| }
|
| ReleaseStgMedium(&content);
|
| }
|
|
|