Increase maximum allowable KDM file size.
[dcpomatic.git] / src / tools / dcpomatic_kdm.cc
index a0d7c1cbc25527e1a4ce7ee1a1fe97c584717bf7..a0a3a59f8786aa348ebc562578f207dbb1923b3f 100644 (file)
@@ -80,7 +80,7 @@ public:
        optional<dcp::EncryptedKDM> get ()
        {
                try {
-                       return dcp::EncryptedKDM (dcp::file_to_string (wx_to_std (_dialog->GetPath ())));
+                       return dcp::EncryptedKDM (dcp::file_to_string (wx_to_std (_dialog->GetPath ()), MAX_KDM_SIZE));
                } catch (cxml::Error& e) {
                        error_dialog (_parent, wxString::Format ("This file does not look like a KDM (%s)", std_to_wx (e.what()).data()));
                }