Nebula: Convert fixed length char to BString

This commit is contained in:
John Scipione 2015-07-08 15:31:07 -07:00
parent a11f9c281c
commit 0f0de97fed

View File

@ -430,12 +430,12 @@ public:
const char* UpdateText() const
{
sprintf(fText, "%s: %d", fLabel, Value());
return fText;
fText.SetToFormat("%s: %d", fLabel, Value());
return fText.String();
};
private:
mutable char fText[32];
mutable BString fText;
const char* fLabel;
};