Nebula: Convert fixed length char to BString

This commit is contained in:
John Scipione
2015-07-08 15:33:10 -07:00
parent a11f9c281c
commit 0f0de97fed
+3 -3
View File
@@ -430,12 +430,12 @@ public:
const char* UpdateText() const const char* UpdateText() const
{ {
sprintf(fText, "%s: %d", fLabel, Value()); fText.SetToFormat("%s: %d", fLabel, Value());
return fText; return fText.String();
}; };
private: private:
mutable char fText[32]; mutable BString fText;
const char* fLabel; const char* fLabel;
}; };