diff options
Diffstat (limited to 'g10')
-rw-r--r-- | g10/cpr.c | 8 | ||||
-rw-r--r-- | g10/distsigkey.gpg | bin | 3452 -> 3267 bytes |
2 files changed, 7 insertions, 1 deletions
@@ -425,11 +425,17 @@ do_get_from_fd ( const char *keyword, int hidden, int getbool ) { if (i >= len-1 ) { + /* On the first iteration allocate a new buffer. If that + * buffer is too short at further iterations do a poor man's + * realloc. */ char *save = string; len += 100; string = hidden? xmalloc_secure ( len ) : xmalloc ( len ); if (save) - memcpy (string, save, i ); + { + memcpy (string, save, i); + xfree (save); + } else i = 0; } diff --git a/g10/distsigkey.gpg b/g10/distsigkey.gpg Binary files differindex 17de53f8a..219b7edbb 100644 --- a/g10/distsigkey.gpg +++ b/g10/distsigkey.gpg |