aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--agent/call-pinentry.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/call-pinentry.c b/agent/call-pinentry.c
index def33203d..5092375f0 100644
--- a/agent/call-pinentry.c
+++ b/agent/call-pinentry.c
@@ -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;