Ver Fonte

Increase --select-file upper bound to 1m for torrent containing lots of files

Tatsuhiro Tsujikawa há 10 anos atrás
pai
commit
c3b89d37e1
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/OptionHandlerFactory.cc

+ 1 - 1
src/OptionHandlerFactory.cc

@@ -1708,7 +1708,7 @@ std::vector<OptionHandler*> OptionHandlerFactory::createOptionHandlers()
                       (PREF_SELECT_FILE,
                        TEXT_SELECT_FILE,
                        NO_DEFAULT_VALUE,
-                       1, 65535));
+                       1, 1_m));
     op->addTag(TAG_BITTORRENT);
     op->addTag(TAG_METALINK);
     op->setInitialOption(true);