Was forgetting this

* src/support/docstring.C
	(do_get): terminate the string before using it.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16086 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2006-11-28 00:24:18 +00:00
parent c7a3620eeb
commit 04f2c93ca5

View File

@ -468,6 +468,7 @@ protected:
s.reserve(64); s.reserve(64);
for (; iit != eit && isNumpunct(*iit); ++iit) for (; iit != eit && isNumpunct(*iit); ++iit)
s += static_cast<char>(*iit); s += static_cast<char>(*iit);
s += '\0';
string_num_get_facet f; string_num_get_facet f;
f.get(s.begin(), s.end(), b, err, v); f.get(s.begin(), s.end(), b, err, v);