From 48124f89b4e9b5f6b95ddc294f820affdb73ccce Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Sun, 10 Mar 2019 00:24:26 +0100 Subject: [PATCH] =?UTF-8?q?fix=20=E2=80=98sprintf=E2=80=99=20output=20betw?= =?UTF-8?q?een=2015=20and=2019=20bytes=20into=20a=20destination=20of=20siz?= =?UTF-8?q?e=2018?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/hardnested/hardnested_bruteforce.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/hardnested/hardnested_bruteforce.c b/client/hardnested/hardnested_bruteforce.c index 680f032a6..320c20f70 100644 --- a/client/hardnested/hardnested_bruteforce.c +++ b/client/hardnested/hardnested_bruteforce.c @@ -171,7 +171,7 @@ crack_states_thread(void *x) __atomic_fetch_add(&found_bs_key, key, __ATOMIC_SEQ_CST); char progress_text[80]; - char keystr[18]; + char keystr[19]; sprintf(keystr, "%012" PRIx64 " ", key); sprintf(progress_text, "Brute force phase completed. Key found: " _YELLOW_( % s), keystr); hardnested_print_progress(thread_arg->num_acquired_nonces, progress_text, 0.0, 0);