diff options
author | Robert Swiecki <robert@swiecki.net> | 2018-03-02 03:05:26 +0100 |
---|---|---|
committer | Robert Swiecki <robert@swiecki.net> | 2018-03-02 03:05:26 +0100 |
commit | 04dcac30bf872c0d3523fb5dd74eb629cacaf490 (patch) | |
tree | 6926b8f3ed8403a9a5c8d06b1549bcf0a7011e44 /input.c | |
parent | fbe975598859985c8c800aaaf212e8e29632fad9 (diff) | |
download | honggfuzz-04dcac30bf872c0d3523fb5dd74eb629cacaf490.tar.gz |
honggfuzz.h: move some global struct values into substructs
Diffstat (limited to 'input.c')
-rw-r--r-- | input.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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; } |