summaryrefslogtreecommitdiff
path: root/src/fuzz
diff options
context:
space:
mode:
Diffstat (limited to 'src/fuzz')
-rw-r--r--src/fuzz/fuzz.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fuzz/fuzz.h b/src/fuzz/fuzz.h
index a7d3a89fe2..77e0ad98dc 100644
--- a/src/fuzz/fuzz.h
+++ b/src/fuzz/fuzz.h
@@ -14,7 +14,7 @@ static inline FILE* data_to_file(const uint8_t *data, size_t size) {
if (size == 0)
return fopen("/dev/null", "re");
else
- return fmemopen_unlocked((char*) data, size, "re");
+ return fmemopen_unlocked((char*) data, size, "r");
}
/* Check if we are within the specified size range.