tmbinc / bgrep

Binary Grep
http://debugmo.de/2009/04/bgrep-a-binary-grep/
368 stars 57 forks source link

Big files and 32 bit machines #12

Open Theowoll opened 6 years ago

Theowoll commented 6 years ago

I have to use the gcc -D_FILE_OFFSET_BITS=64 flag to make it work for big files on a 32 bit machine. I also replaced

printf("%s: %08llx\n", filename, pos);

by

printf("%s: %016llx\n", filename, pos);