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);