zstd cli : control maximum compression level

This commit is contained in:
Yann Collet 2016-02-16 16:33:48 +01:00
parent 31dd08cad5
commit 6aa896adc6

View File

@ -241,6 +241,8 @@ int main(int argCount, const char** argv)
argument++;
}
dictCLevel = cLevel;
if (dictCLevel > ZSTD_maxCLevel())
return badusage(programName);
continue;
}