diff options
Diffstat (limited to 'pinentry-dmenu.c')
-rw-r--r-- | pinentry-dmenu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pinentry-dmenu.c b/pinentry-dmenu.c index bce1da2..1da85a6 100644 --- a/pinentry-dmenu.c +++ b/pinentry-dmenu.c @@ -534,7 +534,7 @@ paste(void) { Atom da; /* We have been given the current selection, now insert it into input */ - XGetWindowProperty(dpy, win, utf8, 0, (sizeof(pin) / 4) + 1, False, + XGetWindowProperty(dpy, win, utf8, 0, pinentry->pin_len / 4, False, utf8, &da, &di, &dl, &dl, (unsigned char **)&p); insert(p, (q = strchr(p, '\n')) ? q - p : (ssize_t) strlen(p)); XFree(p); |