pkcs15-crypt.c: fixed accessing label in sc_pkcs15_object_t
This commit is contained in:
parent
191af692c8
commit
d709347c2b
|
@ -140,7 +140,7 @@ static char * get_pin(struct sc_pkcs15_object *obj)
|
|||
return strdup(opt_pincode);
|
||||
}
|
||||
|
||||
sprintf(buf, "Enter PIN [%s]: ", obj->label);
|
||||
sprintf(buf, "Enter PIN [%.*s]: ", (int) sizeof obj->label, obj->label);
|
||||
while (1) {
|
||||
pincode = getpass(buf);
|
||||
if (strlen(pincode) == 0)
|
||||
|
|
Loading…
Reference in New Issue