1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-02 22:38:02 +02:00

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

View File

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