fixed minor inconsistencies, reenabled warnings

This commit is contained in:
Dominik Maier
2020-08-10 19:04:51 +02:00
parent fb84103ffb
commit a422fcaa40
5 changed files with 12 additions and 9 deletions

View File

@ -289,8 +289,9 @@ int main(int argc, char **argv_orig, char **envp) {
if (afl->cpu_to_bind != -1) FATAL("Multiple -b options not supported");
if (sscanf(optarg, "%u", &afl->cpu_to_bind) < 0 || optarg[0] == '-')
if (sscanf(optarg, "%d", &afl->cpu_to_bind) < 0) {
FATAL("Bad syntax used for -b");
}
break;