projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0b9aa2
)
Fix too-small minimum key file size and improve error message.
author
Carl Hetherington
<cth@carlh.net>
Fri, 22 Apr 2016 10:35:14 +0000
(11:35 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Fri, 22 Apr 2016 10:35:14 +0000
(11:35 +0100)
src/wx/config_dialog.cc
patch
|
blob
|
history
diff --git
a/src/wx/config_dialog.cc
b/src/wx/config_dialog.cc
index eb3736c6c5de59e3290d2f0bceb43beda10d67d8..af4a04e2edd1bbf99ea5fef9c1bbf7c35f752afe 100644
(file)
--- a/
src/wx/config_dialog.cc
+++ b/
src/wx/config_dialog.cc
@@
-912,8
+912,11
@@
private:
if (d->ShowModal() == wxID_OK) {
try {
boost::filesystem::path p (wx_to_std (d->GetPath ()));
- if (boost::filesystem::file_size (p) > 1024) {
- error_dialog (this, wxString::Format (_("Could not read key file (%s)"), std_to_wx (p.string ())));
+ if (boost::filesystem::file_size (p) > 8192) {
+ error_dialog (
+ this,
+ wxString::Format (_("Could not read key file; file is too long (%s)"), std_to_wx (p.string ()))
+ );
return;
}