removed use of strlen

master
Avril 4 years ago
parent 0fbd1ea230
commit 1507040d0c
Signed by: flanchan
GPG Key ID: 966FE03CC0E0B199

@ -47,7 +47,7 @@ int main(int argc, char **argv)
{ {
IGNORE(argc); IGNORE(argc);
const char* mask = argv[1] && lcheck(strlen(argv[1]) > 1, "expected 2 character mask") ? argv[1] : "01"; const char* mask = argv[1] && lcheck(argv[1][0] && 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;

Loading…
Cancel
Save