dynamic keyframes, textbox rework, andrea ffmpeg.opts, perpetual chkpt undo, lv2...
[goodguy/history.git] / cinelerra-5.1 / cinelerra / localsession.C
index bb95fafa1c40aeadb6739bb8dc8d491005e54d80..0ce537e25c2b78083c78656579b0cd63aa6225e2 100644 (file)
@@ -329,8 +329,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);
                }
        }
 }