repair default keyframe load, tweak init default histogram threshold
[goodguy/history.git] / cinelerra-5.1 / cinelerra / localsession.C
index 0c7e1d718b5efcc7fffb0e3552c6d7d429aef1f6..9556dce3d6ebd693e6b3d5dde01230e6d552d179 100644 (file)
@@ -322,8 +322,10 @@ void LocalSession::load_xml(FileXML *file, unsigned long load_flags)
        while( !file->read_tag() ) {
                if( file->tag.title_is("/LOCALSESSION") ) break;
                if( file->tag.title_is("CLIP_NOTES") ) {
-                       file->read_text_until("/CLIP_NOTES",
-                               clip_notes, sizeof(clip_notes)-1, 1);
+                       XMLBuffer notes;
+                       file->read_text_until("/CLIP_NOTES", &notes, 1);
+                       memset(clip_notes, 0, sizeof(clip_notes));
+                       strncpy(clip_notes, notes.cstr(), sizeof(clip_notes)-1);
                }
        }
 }