Ensure wxCharTypeBuffer data is NUL-terminated after extend() call.
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 20 Jan 2012 22:11:51 +0000 (22:11 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 20 Jan 2012 22:11:51 +0000 (22:11 +0000)
commitf2c6e607622d2f8c684b2a6417bd43f52e3b9eef
treeff034687e7e76bbdc88d1309196b6d993aa74a7c
parent0c99d1fb566ad3071f25ea5f1ae94003c9a3a87c
Ensure wxCharTypeBuffer data is NUL-terminated after extend() call.

As wxCharTypeBuffer ctor taking the length NUL-terminates the buffer, it may
be expected that extend() does the same but it did not. Do add the NUL at the
end for consistency, even though it's not really needed for the existing code
using extend() in wxWidgets itself.

Closes #13885.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70417 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/buffer.h
tests/strings/strings.cpp