summaryrefslogtreecommitdiff
path: root/test/adjuster.cxx
diff options
context:
space:
mode:
authormaxim nikonov <maxim.nikonov@hqo.co>2026-02-06 04:21:03 +0500
committermaxim nikonov <maxim.nikonov@hqo.co>2026-02-06 04:21:03 +0500
commit4810610dafb8ed93dd3672e32256997e22eca950 (patch)
treee0db960825627acbe94a71f773ca3ac36617869f /test/adjuster.cxx
parentf93978aba486bf0fea8d9ee857d014a02f3f7d96 (diff)
wip
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();
}