Skip to content

Commit

Permalink
Nebula: Convert fixed length char to BString
Browse files Browse the repository at this point in the history
  • Loading branch information
jscipione committed Jul 8, 2015
1 parent a11f9c2 commit 0f0de97
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/add-ons/screen_savers/nebula/Nebula.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -430,12 +430,12 @@ class SimpleSlider : public BSlider {

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

Expand Down

0 comments on commit 0f0de97

Please sign in to comment.