[CinCV-commits] CinelerraCV.git (#1542) - master (branch) updated: v2.3-90-g4202a9d

git repository hosting git at cinelerra-cv.org
Sun Apr 24 20:12:13 CEST 2016

The branch, master has been updated
       via  4202a9d2fe9f4238d2c36b668f5b42cfa3e0bdc5 (commit)
      from  36659e9965401a124097dd26f1ecc7443e68e5a6 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 4202a9d2fe9f4238d2c36b668f5b42cfa3e0bdc5
Author: Einar R√ľnkaru <einarrunkaru at gmail.com>
Date:   Sat Apr 23 13:51:58 2016 +0300

    Fixed window title used in BrowseButton
    BrowseButton remembers the pointer to title of the window created later.
    As MWindow::create_title uses static buffer for creating titles
    which is not valid for a long time. We have to copy the title immediately.


Summary of changes:
 cinelerra/browsebutton.C | 2 +-
 cinelerra/browsebutton.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

The diff of changes is:
diff --git a/cinelerra/browsebutton.C b/cinelerra/browsebutton.C
index 7840ed2..7f93c34 100644
--- a/cinelerra/browsebutton.C
+++ b/cinelerra/browsebutton.C
@@ -43,7 +43,7 @@ BrowseButton::BrowseButton(MWindow *mwindow,
 	this->parent_window = parent_window;
 	this->want_directory = want_directory;
-	this->title = title;
+	strcpy(this->title, title);
 	this->caption = caption;
 	this->init_directory = init_directory;
 	this->textbox = textbox;
diff --git a/cinelerra/browsebutton.h b/cinelerra/browsebutton.h
index 8dc0eab..61bb40f 100644
--- a/cinelerra/browsebutton.h
+++ b/cinelerra/browsebutton.h
@@ -48,7 +48,7 @@ public:
 	void run();
 	int want_directory;
 	char result[1024];
-	const char *title;
+	char title[BCTEXTLEN];
 	const char *caption;
 	const char *init_directory;
 	BC_TextBox *textbox;

CinelerraCV.git (CinelerraCV)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CinelerraCV.git" (CinelerraCV).

More information about the cinelerra-commits mailing list