[Pkg-gnupg-commit] [gnupg2] 07/21: gpg: Fix "Fix key generation with only an email part".
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Tue Sep 19 15:33:56 UTC 2017
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch master
in repository gnupg2.
commit 8b5a2474f21dd4f1aa2a283e2f57d75e42742af5
Author: Werner Koch <wk at gnupg.org>
Date: Tue Sep 12 14:38:44 2017 +0200
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 at gnupg.org>
---
g10/keygen.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/g10/keygen.c b/g10/keygen.c
index 08bc621..2b17a1e 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);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git
More information about the Pkg-gnupg-commit
mailing list