From 04f2c93ca5e11b848a9be10508d99d094b36a8a4 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Tue, 28 Nov 2006 00:24:18 +0000 Subject: [PATCH] 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 --- src/support/docstring.C | 1 + 1 file changed, 1 insertion(+) diff --git a/src/support/docstring.C b/src/support/docstring.C index b8a0c4c21f..c99c7f5e65 100644 --- a/src/support/docstring.C +++ b/src/support/docstring.C @@ -468,6 +468,7 @@ protected: s.reserve(64); for (; iit != eit && isNumpunct(*iit); ++iit) s += static_cast(*iit); + s += '\0'; string_num_get_facet f; f.get(s.begin(), s.end(), b, err, v);