FreeCalypso > hg > fc-pcsc-tools
comparison simtool/stktest.c @ 141:a1aa8ee2da85
read_hex_data_file(): add maxlen argument
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 24 Feb 2021 17:25:28 +0000 |
parents | 277c66de296f |
children | 60411fd4b803 |
comparison
equal
deleted
inserted
replaced
140:13ab44761ea6 | 141:a1aa8ee2da85 |
---|---|
37 { | 37 { |
38 u_char cmd[260]; | 38 u_char cmd[260]; |
39 int rc; | 39 int rc; |
40 unsigned len; | 40 unsigned len; |
41 | 41 |
42 rc = read_hex_data_file(argv[1], cmd + 5); | 42 rc = read_hex_data_file(argv[1], cmd + 5, 255); |
43 if (rc < 0) | 43 if (rc < 0) |
44 return(rc); | 44 return(rc); |
45 len = rc; | 45 len = rc; |
46 /* ENVELOPE command APDU */ | 46 /* ENVELOPE command APDU */ |
47 cmd[0] = 0xA0; | 47 cmd[0] = 0xA0; |