|
|
@ -55,7 +55,12 @@ int main(int argc, char **argv)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
IGNORE(argc);
|
|
|
|
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];
|
|
|
|
unsigned char buf[BUFFER_SIZE];
|
|
|
|
char tbuf[BUFFER_SIZE * 8];
|
|
|
|
char tbuf[BUFFER_SIZE * 8];
|
|
|
|
size_t bsz = BUFFER_SIZE;
|
|
|
|
size_t bsz = BUFFER_SIZE;
|
|
|
|