From 32fa5523f2d5a7d6abcbdddce56b8d65cd83fb88 Mon Sep 17 00:00:00 2001 From: Good Guy Date: Wed, 13 Apr 2016 15:25:08 -0600 Subject: [PATCH] fix for last check, bad intl text code --- cinelerra-5.1/cinelerra/swindow.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cinelerra-5.1/cinelerra/swindow.C b/cinelerra-5.1/cinelerra/swindow.C index e56fa54a..e88a9e1c 100644 --- a/cinelerra-5.1/cinelerra/swindow.C +++ b/cinelerra-5.1/cinelerra/swindow.C @@ -198,7 +198,7 @@ void SWindowGUI::create_objects() void SWindowGUI::load() { - static const char script_text[] = + const char *script_text = _("Adding Subtitles: quick \"How To\" (= or * indicates comment)\n" "*2345678901234567890123456789012345678901234567890123456789\n" "For regular DVD subtitles, put script in a text file. " @@ -222,7 +222,7 @@ void SWindowGUI::load() else { script_path[0] = 0; load_path->update(script_path); - FILE *fp = fmemopen((void *)script_text, sizeof(script_text), "r"); + FILE *fp = fmemopen((void *)script_text, strlen(script_text), "r"); load_script(fp); } int text_no = script_text_no; -- 2.26.2