From eed4917f5a482b2995b4ad1e0334866bb933e73c Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Sat, 10 Nov 2018 03:49:02 +0100 Subject: [PATCH] Fix key generation. --- legacy/gnupg/g10/call-agent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legacy/gnupg/g10/call-agent.cpp b/legacy/gnupg/g10/call-agent.cpp index d37f503a7..e044ce668 100644 --- a/legacy/gnupg/g10/call-agent.cpp +++ b/legacy/gnupg/g10/call-agent.cpp @@ -140,7 +140,7 @@ static gpg_error_t default_inq_cb(void *opaque, const char *line) { if ((*pw)[0] == CONTROL_D && !(*pw)[1]) err = GPG_ERR_CANCELED; else - err = assuan_send_data(parm->ctx, pw, strlen(pw->data())); + err = assuan_send_data(parm->ctx, pw->data(), strlen(pw->data())); delete pw; } } else