Skip to content

Commit

Permalink
Add more const
Browse files Browse the repository at this point in the history
  • Loading branch information
0-wiz-0 committed Sep 28, 2023
1 parent ffe032c commit 49a4626
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ossfuzz/zip_read_fuzzer_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

#include "zip.h"

void fuzzer_read(zip_t *za, zip_error_t *error, char *password) {
void fuzzer_read(zip_t *za, zip_error_t *error, const char *password) {
zip_int64_t i, n, ret;
char buf[32768];

Expand All @@ -42,7 +42,7 @@ void fuzzer_read(zip_t *za, zip_error_t *error, char *password) {
zip_error_fini(error);
return;
}

zip_set_default_password(za, password);

zip_error_fini(error);
Expand Down Expand Up @@ -70,4 +70,4 @@ void fuzzer_read(zip_t *za, zip_error_t *error, char *password) {
fprintf(stderr, "Error closing archive: %s\n", zip_strerror(za));
zip_discard(za);
}
}
}

0 comments on commit 49a4626

Please sign in to comment.