xlat changes, layout changes
[goodguy/history.git] / cinelerra-5.1 / cinelerra / swindow.C
index e56fa54a92a41f6b76e2b9a7da6020c71ae5de2d..57b75a9997f75bef65c48d605799486f064ed2a4 100644 (file)
@@ -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;
@@ -818,6 +818,10 @@ void SWindowGUI::save_spumux_data()
                *cp = 0;
                snprintf(ext,len,"-%s.udvd",track_title);
                FILE *fp = fopen(filename, "w");
+               if( !fp ) {
+                       eprintf(_("Unable to open %s:\n%m"), filename);
+                       continue;
+               }
                int64_t start = 0;
                for( Edit *edit=track->edits->first; edit; edit=edit->next ) {
                        SEdit *sedit = (SEdit *)edit;