avoid signed ints for amounts (which are positive)

This commit is contained in:
hexcoder-
2020-09-04 22:26:39 +02:00
parent 77b824d101
commit 0625eb0a05
2 changed files with 7 additions and 7 deletions

View File

@ -29,20 +29,20 @@
/* Write fuzzer setup file */
void write_setup_file(afl_state_t *afl, int argc, char **argv) {
void write_setup_file(afl_state_t *afl, u32 argc, char **argv) {
char *val;
u8 fn[PATH_MAX];
snprintf(fn, PATH_MAX, "%s/fuzzer_setup", afl->out_dir);
FILE *f = create_ffile(fn);
s32 i;
u32 i;
fprintf(f, "# environment variables:\n");
s32 s_afl_env = (s32)
u32 s_afl_env =
sizeof(afl_environment_variables) / sizeof(afl_environment_variables[0]) -
1;
1U;
for (i = 0; i < s_afl_env; i++) {
for (i = 0; i < s_afl_env; ++i) {
if ((val = getenv(afl_environment_variables[i])) != NULL) {
@ -55,7 +55,7 @@ void write_setup_file(afl_state_t *afl, int argc, char **argv) {
fprintf(f, "# command line:\n");
size_t j;
for (i = 0; i < argc; i++) {
for (i = 0; i < argc; ++i) {
if (i) fprintf(f, " ");
if (index(argv[i], '\'')) {