Avril 3 years ago
parent 94d4eeb616
commit eaf85832a3
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -55,7 +55,12 @@ int main(int argc, char **argv)
{
IGNORE(argc);
const char* mask = argv[1] && Lcheck(argv[1][0] && argv[1][1], "expected 2 character mask") ? argv[1] : "01";
const char* mask = argv[1] &&
Lcheck( argv[1][0] && // We only care about the first 2 chars, so check them both. If neither are the null terminator, then the mask is valid.
argv[1][1], "expected 2 character mask") ?
argv[1] :
"01";
unsigned char buf[BUFFER_SIZE];
char tbuf[BUFFER_SIZE * 8];
size_t bsz = BUFFER_SIZE;

Loading…
Cancel
Save