direct integrals for floatautos, clipboard fix
[goodguy/history.git] / cinelerra-5.1 / cinelerra / clippopup.C
index 4fd6af6975e6139c42d4965f31d16f43b604151a..602fbbd03802354f344e7e57026ee571973eb82d 100644 (file)
@@ -354,7 +354,7 @@ int ClipPasteToFolder::handle_event()
        gui->lock_window("ClipPasteToFolder::handle_event 1");
        int64_t len = gui->clipboard_len(BC_PRIMARY_SELECTION);
        if( len ) {
-               char *string = new char[len + 1];
+               char *string = new char[len];
                gui->from_clipboard(string, len, BC_PRIMARY_SELECTION);
                const char *clip_header = "<EDL VERSION=";
                if( !strncmp(clip_header, string, strlen(clip_header)) ) {