mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-07-05 20:41:39 -07:00
avoid negative values for the rotation variable
This commit is contained in:
parent
c65e3a26fc
commit
490bd3e7cd
1 changed files with 1 additions and 1 deletions
2
bfg.c
2
bfg.c
|
@ -230,7 +230,7 @@ char *bf_next(_Bool rainy) {
|
|||
bf_options.rotate += i+3;
|
||||
}
|
||||
//we don't subtract the same depending on wether the length is odd or even
|
||||
for(i=1+bf_options.current%2; i<=bf_options.current; ++i)
|
||||
for(i=1+bf_options.current%2; i<bf_options.current+bf_options.current%2; ++i)
|
||||
bf_options.rotate -= i+1;
|
||||
}
|
||||
bf_options.ptr[bf_options.current] = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue