X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7ca019817d3978611565c895cf1a95420ef76cef..39987096b3aa3e1bec4f69a5793780f7ea2dd914:/src/common/dobjcmn.cpp?ds=inline diff --git a/src/common/dobjcmn.cpp b/src/common/dobjcmn.cpp index dd27a6032d..cbed32d72f 100644 --- a/src/common/dobjcmn.cpp +++ b/src/common/dobjcmn.cpp @@ -238,7 +238,7 @@ size_t wxTextDataObject::GetDataSize(const wxDataFormat& format) const { wxCharBuffer buffer = GetConv(format).cWX2MB( GetText().c_str() ); - return buffer ? strlen( buffer ) + 1 : 0; + return buffer ? strlen( buffer ) : 0; } bool wxTextDataObject::GetDataHere(const wxDataFormat& format, void *buf) const