maint(compression): pass args by reference

Co-authored-by: William Roy <wroy@proton.me>
This commit is contained in:
2023-05-26 19:19:43 +02:00
parent cf3a4e18e6
commit beb90226fe
3 changed files with 4 additions and 4 deletions

View File

@@ -35,7 +35,7 @@ int main(const int argc, const char** argv)
try
{
unsafe_main(argc > 1 ? static_cast<uint16_t>(atoi(argv[1])) : 20810);
unsafe_main(argc > 1 ? static_cast<uint16_t>(std::strtol(argv[1], nullptr, 10)) : 20810);
}
catch (std::exception& e)
{