agent: fix agent_askpin.

* agent/call-pinentry.c (agent_askpin): Fix off-by-one error.
This commit is contained in:
NIIBE Yutaka 2015-10-09 11:46:23 +09:00
parent f70f669536
commit 818fa4f71e
1 changed files with 1 additions and 1 deletions

View File

@ -830,7 +830,7 @@ agent_askpin (ctrl_t ctrl,
*pininfo->pin = 0; /* Reset the PIN. */
rc = pinentry_loopback(ctrl, "PASSPHRASE", &passphrase, &size,
pininfo->max_length);
pininfo->max_length - 1);
if (rc)
return rc;