summaryrefslogtreecommitdiff
path: root/security/pinentry/patches/patch-aa
diff options
context:
space:
mode:
Diffstat (limited to 'security/pinentry/patches/patch-aa')
-rw-r--r--security/pinentry/patches/patch-aa16
1 files changed, 16 insertions, 0 deletions
diff --git a/security/pinentry/patches/patch-aa b/security/pinentry/patches/patch-aa
new file mode 100644
index 00000000000..af4411e0285
--- /dev/null
+++ b/security/pinentry/patches/patch-aa
@@ -0,0 +1,16 @@
+$NetBSD: patch-aa,v 1.3 2010/02/22 17:19:09 drochner Exp $
+
+--- pinentry/pinentry-curses.c.orig 2009-04-16 15:06:53.000000000 +0000
++++ pinentry/pinentry-curses.c
+@@ -819,8 +819,10 @@ dialog_run (pinentry_t pinentry, const c
+ if (pin_utf8)
+ {
+ pinentry_setbufferlen (pinentry, strlen (pin_utf8) + 1);
+- if (pinentry->pin)
++ if (pinentry->pin) {
+ strcpy (pinentry->pin, pin_utf8);
++ diag.pin_len = strlen (pin_utf8);
++ }
+ secmem_free (pin_utf8);
+ pinentry->locale_err = 0;
+ }