Skip to content

Commit

Permalink
get rid of useless strlens
Browse files Browse the repository at this point in the history
  • Loading branch information
ryancdotorg committed Oct 17, 2015
1 parent 570520d commit 0eef329
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions brainflayer.c
Original file line number Diff line number Diff line change
Expand Up @@ -498,10 +498,8 @@ int main(int argc, char **argv) {
if (kopt && raw_lines < kopt) { continue; }
if (nopt_mod && raw_lines % nopt_mod != nopt_rem) { continue; }
}
line[strlen(line)-1] = 0;
input2hash160(line, strlen(line));
//line[line_read] = 0;
//input2hash160(line, line_read);
line[line_read] = 0;
input2hash160(line, line_read);
if (bloom) {
if (bloom_chk_hash160(bloom, hash160_uncmp.ul)) {
if (vopt && ofile == stdout) fprintf(ofile, "\033[0K");
Expand Down

0 comments on commit 0eef329

Please sign in to comment.