Fixed segfault when using colors=false

This commit is contained in:
Ben Gräf 2019-01-06 17:30:01 +01:00
parent b61ed1a38a
commit f7e6b3cef1

View file

@ -122,7 +122,7 @@ static void print_threads()
Log::i()->text(Options::i()->colors() ? Log::i()->text(Options::i()->colors() ?
"\x1B[01;32m * \x1B[01;37mTHREADS: \x1B[01;36m%d\x1B[01;37m, %s, hf=%zu, %sdonate=%d%%\x1B[01;37m%s%s" : "\x1B[01;32m * \x1B[01;37mTHREADS: \x1B[01;36m%d\x1B[01;37m, %s, hf=%zu, %sdonate=%d%%\x1B[01;37m%s%s" :
" * THREADS: %d, %s, %saes=%d, hf=%zu, %sdonate=%d%%%s%s", " * THREADS: %d, %s, hf=%zu, %sdonate=%d%%%s%s",
Options::i()->threads(), Options::i()->threads(),
Options::i()->algoName(), Options::i()->algoName(),
Options::i()->hashFactor(), Options::i()->hashFactor(),