Always NUL-terminate wxPrintfConvSpec::m_szFlags.
authorVáclav Slavík <vslavik@fastmail.fm>
Thu, 24 Jun 2010 10:34:06 +0000 (10:34 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Thu, 24 Jun 2010 10:34:06 +0000 (10:34 +0000)
commit060ec116e4ae71c6292254e7946595a734369841
tree5311fb143e82dc7a5d3f8203649cd33860fc3978
parent2f069716400898295fb4f69f58309bbbb04938a6
Always NUL-terminate wxPrintfConvSpec::m_szFlags.

The array was initialized and terminating NUL was only added in some
cases. In combination with strchr() calls, this would result it
incorrect calculations or even crashes.

Fixed by initializing the array to zeros. This is less error-prone than
fixing the few places where explicitly adding the terminating NUL was
missing.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64708 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/private/wxprintf.h