diff options
author | Werner Koch <wk@gnupg.org> | 2017-09-12 14:38:44 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2017-09-12 14:38:44 +0200 |
commit | 8b5a2474f21dd4f1aa2a283e2f57d75e42742af5 (patch) | |
tree | c27c984d7691ec93c10e52506d5f84efac3f4ef4 | |
parent | wks: Use unencrypted draft-1 mode for posteo.de (diff) | |
download | gnupg2-8b5a2474f21dd4f1aa2a283e2f57d75e42742af5.tar.xz gnupg2-8b5a2474f21dd4f1aa2a283e2f57d75e42742af5.zip |
gpg: Fix "Fix key generation with only an email part".
* g10/keygen.c (proc_parameter_file): Don't check the result of
stpcpy.
--
Fixes-commit: 7089dcc54099a4909ce7d386c07ab87e1398e2eb
Signed-off-by: Werner Koch <wk@gnupg.org>
-rw-r--r-- | g10/keygen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/keygen.c b/g10/keygen.c index 08bc62131..2b17a1e09 100644 --- a/g10/keygen.c +++ b/g10/keygen.c @@ -3533,7 +3533,7 @@ proc_parameter_file (ctrl_t ctrl, struct para_data_s *para, const char *fname, { /* If we have only the email part, do not add the space * and the angle brackets. */ - if (*p) + if (*r->u.value) p = stpcpy(stpcpy(stpcpy(p," <"), s3 ),">"); else p = stpcpy (p, s3); |