Forráskód Böngészése

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

Tatsuhiro Tsujikawa 10 éve
szülő
commit
c3b89d37e1
1 módosított fájl, 1 hozzáadás és 1 törlés
  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);