Don't crash if XRC file contains '_' at the end of a string.
authorVáclav Slavík <vslavik@fastmail.fm>
Sun, 15 Jan 2012 17:45:14 +0000 (17:45 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sun, 15 Jan 2012 17:45:14 +0000 (17:45 +0000)
commit2148394afb01f13b0b12d7c867fa9910c4745cb8
tree0d472f54739a55e5b8d1e346febaf406ad4cbbc6
parent9c71750d8097c4ef7a8918645b242bd122a4fab5
Don't crash if XRC file contains '_' at the end of a string.

Parsing code for translating between '_' and '&' didn't properly handle
the case when the input was malformed and '_' wasn't followed by either
another '_' or another character. Added a check to guard against this.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70357 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/xrc/xmlres.cpp
utils/wxrc/wxrc.cpp