pkcs15-crypt.c: fixed accessing label in sc_pkcs15_object_t

This commit is contained in:
Frank Morgner 2015-10-04 17:33:14 +02:00
parent 191af692c8
commit d709347c2b
1 changed files with 1 additions and 1 deletions

View File

@ -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)