unsigned char usb_mode = -1;
bool zap = false;
- unsigned char scan_map[strlen(SCAN_MAP)];
+ unsigned char scan_map[sizeof(SCAN_MAP)];
int rc;
unsigned char usb_mode = -1;
bool zap = false;
- unsigned char scan_map[strlen(SCAN_MAP)];
+ unsigned char scan_map[sizeof(SCAN_MAP)];
char *argv[] = {
"unittest", "-1", "-sout", "-iin", "-c313233343536", "-y", "-v",
bool aesviahash = false;
bool use_access_code = false;
unsigned char access_code[256];
- unsigned char scan_codes[strlen(SCAN_MAP)];
+ unsigned char scan_codes[sizeof(SCAN_MAP)];
YK_KEY *yk = 0;
YKP_CONFIG *cfg = ykp_alloc();
YK_STATUS *st = ykds_alloc();