From 51a47c5cf629099191c1d6ab59d3a4b916189254 Mon Sep 17 00:00:00 2001 From: owein Date: Sat, 14 Nov 2020 14:20:00 +0100 Subject: [PATCH] uptodate with rainycrack --- bfg.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/bfg.c b/bfg.c index 5b7df89..218bda4 100644 --- a/bfg.c +++ b/bfg.c @@ -200,15 +200,16 @@ uint64_t bf_get_pcount() { } char *bf_next() { - int32_t i, pos = bf_options.current - 1; - if (bf_options.current > bf_options.to) - return NULL; // we are done - if ((bf_options.ptr = malloc(BF_CHARSMAX)) == NULL) { - fprintf(stderr, "Error: Can not allocate memory for -x data!\n"); - return NULL; - } +int accu(int x) { + int a = 0, b; + for(b=1; b