From c7ae81f03521b2a672539de8b3203d3901c6bd27 Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Wed, 24 Feb 2010 18:40:34 -0600 Subject: [PATCH] Mixer/Module_Parameter_Editor: Don't point widow label at stack allocation. --- mixer/src/Module_Parameter_Editor.C | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mixer/src/Module_Parameter_Editor.C b/mixer/src/Module_Parameter_Editor.C index 6ad0f60..6b91a15 100644 --- a/mixer/src/Module_Parameter_Editor.C +++ b/mixer/src/Module_Parameter_Editor.C @@ -56,11 +56,10 @@ Module_Parameter_Editor::Module_Parameter_Editor ( Module *module ) : Fl_Double_ else strcpy( lab, module->label() ); - char title[512]; snprintf( title, sizeof( title ), "%s - %s - %s", "Mixer", module->chain()->name(), lab ); - label( title ); + copy_label( title ); { Fl_Pack *o = main_pack = new Fl_Pack( 0, y(), w(), h() - 10 ); o->type( FL_VERTICAL );