summaryrefslogtreecommitdiff
path: root/test/adjuster.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'test/adjuster.cxx')
-rw-r--r--test/adjuster.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/adjuster.cxx b/test/adjuster.cxx
index 9038d13de..c745da32f 100644
--- a/test/adjuster.cxx
+++ b/test/adjuster.cxx
@@ -23,8 +23,9 @@
void adjcb(Fl_Widget *o, void *v) {
Fl_Adjuster *a = (Fl_Adjuster*)o;
Fl_Box *b = (Fl_Box *)v;
- std::string new_label = a->format_str();
- b->copy_label(new_label.c_str());
+ char new_label[64];
+ a->format(new_label);
+ b->copy_label(new_label);
b->redraw();
}