diff --git a/bfg.c b/bfg.c index 218bda4..99b0b14 100644 --- a/bfg.c +++ b/bfg.c @@ -200,18 +200,18 @@ 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 -int accu(int x) { - int a = 0, b; - for(b=1; b