summaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorRobert Swiecki <robert@swiecki.net>2018-03-02 03:05:26 +0100
committerRobert Swiecki <robert@swiecki.net>2018-03-02 03:05:26 +0100
commit04dcac30bf872c0d3523fb5dd74eb629cacaf490 (patch)
tree6926b8f3ed8403a9a5c8d06b1549bcf0a7011e44 /input.c
parentfbe975598859985c8c800aaaf212e8e29632fad9 (diff)
downloadhonggfuzz-04dcac30bf872c0d3523fb5dd74eb629cacaf490.tar.gz
honggfuzz.h: move some global struct values into substructs
Diffstat (limited to 'input.c')
-rw-r--r--input.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/input.c b/input.c
index 9bcc10af..fcad6f8f 100644
--- a/input.c
+++ b/input.c
@@ -197,9 +197,9 @@ bool input_init(honggfuzz_t* hfuzz) {
}
bool input_parseDictionary(honggfuzz_t* hfuzz) {
- FILE* fDict = fopen(hfuzz->dictionaryFile, "rb");
+ FILE* fDict = fopen(hfuzz->mutate.dictionaryFile, "rb");
if (fDict == NULL) {
- PLOG_W("Couldn't open '%s' - R/O mode", hfuzz->dictionaryFile);
+ PLOG_W("Couldn't open '%s' - R/O mode", hfuzz->mutate.dictionaryFile);
return false;
}
defer {
@@ -243,12 +243,12 @@ bool input_parseDictionary(honggfuzz_t* hfuzz) {
struct strings_t* str = (struct strings_t*)util_Malloc(sizeof(struct strings_t));
str->len = util_decodeCString(s);
str->s = s;
- hfuzz->dictionaryCnt += 1;
- TAILQ_INSERT_TAIL(&hfuzz->dictq, str, pointers);
+ hfuzz->mutate.dictionaryCnt += 1;
+ TAILQ_INSERT_TAIL(&hfuzz->mutate.dictq, str, pointers);
LOG_D("Dictionary: loaded word: '%s' (len=%zu)", str->s, str->len);
}
- LOG_I("Loaded %zu words from the dictionary", hfuzz->dictionaryCnt);
+ LOG_I("Loaded %zu words from the dictionary", hfuzz->mutate.dictionaryCnt);
return true;
}