etcos_create_file_44(): use sizeof(pins)/sizeof(pins[0]) instead of a
constant (7) git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2761 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
dce7d0024c
commit
fc763ba5d5
@ -362,7 +362,7 @@ static int setcos_create_file_44(sc_card_t *card, sc_file_t *file)
|
||||
SETEC_LCSI_CREATE : SETEC_LCSI_ACTIVATED;
|
||||
u8 bCommands_always = 0;
|
||||
int pins[] = {-1, -1, -1, -1, -1, -1, -1};
|
||||
u8 bCommands_pin[7]; /* both 7 entries big */
|
||||
u8 bCommands_pin[sizeof(pins)/sizeof(pins[0])]; /* both 7 entries big */
|
||||
u8 bCommands_key = 0;
|
||||
u8 bNumber = 0;
|
||||
u8 bPinNumber = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user