1
0
Fork 0

Fixed a bug report from Frederic Bouvier:

as a follow-up of my previous message, I found that in panel.cxx, function
const char *FGTextLayer::Chunk::getValue () const, there is the use of a
member variable _buf that seems to be uninitialized.
This commit is contained in:
david 2002-03-27 12:59:53 +00:00
parent 64ed2f8e42
commit ec6a0b2810

View file

@ -1096,6 +1096,7 @@ const char *
FGTextLayer::Chunk::getValue () const
{
if (test()) {
_buf[0] = '\0';
switch (_type) {
case TEXT:
sprintf(_buf, _fmt.c_str(), _text.c_str());