]> git.saurik.com Git - wxWidgets.git/commit - src/html/htmlfilt.cpp
Don't unnecessarily NUL-terminate wxCharBuffer contents.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 8 Dec 2012 00:37:17 +0000 (00:37 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 8 Dec 2012 00:37:17 +0000 (00:37 +0000)
commit935693c48491234b24cb1c8431a64f0f11349112
tree8349ada3895cf7bba69e7ed7be923cf9a83ece5b
parentcd41ef6f518a4b76a4416f25cce062e305b3272e
Don't unnecessarily NUL-terminate wxCharBuffer contents.

wxCharBuffer already initializes the last byte of the buffer it allocates to 0
so there is no need to do it explicitly.

Also don't allocate an extra byte, wxCharBuffer already adds one to the length
passed to it for the trailing NUL.

See #13885.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73141 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/datstrm.cpp
src/common/ffile.cpp
src/common/strconv.cpp
src/html/htmlfilt.cpp