1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-16 00:29:50 +02:00

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: 7089dcc540
Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
Werner Koch 2017-09-12 14:38:44 +02:00
parent c65a7bba73
commit 8b5a2474f2
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -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 /* If we have only the email part, do not add the space
* and the angle brackets. */ * and the angle brackets. */
if (*p) if (*r->u.value)
p = stpcpy(stpcpy(stpcpy(p," <"), s3 ),">"); p = stpcpy(stpcpy(stpcpy(p," <"), s3 ),">");
else else
p = stpcpy (p, s3); p = stpcpy (p, s3);