2003-07-22 Marcus Brinkmann <marcus@g10code.de>
* engine-gpgsm.c (set_recipients): Move declaration of NEWLEN to the beginning of the block.
This commit is contained in:
parent
708e6d984e
commit
841cb75ed4
@ -1,3 +1,8 @@
|
||||
2003-07-22 Marcus Brinkmann <marcus@g10code.de>
|
||||
|
||||
* engine-gpgsm.c (set_recipients): Move declaration of NEWLEN to
|
||||
the beginning of the block.
|
||||
|
||||
2003-06-22 Marcus Brinkmann <marcus@g10code.de>
|
||||
|
||||
* data-mem.c (mem_write): Copy original buffer content.
|
||||
|
@ -969,6 +969,7 @@ set_recipients (engine_gpgsm_t gpgsm, gpgme_key_t recp[])
|
||||
while (!err && recp[i])
|
||||
{
|
||||
char *fpr;
|
||||
int newlen;
|
||||
|
||||
if (!recp[i]->subkeys || !recp[i]->subkeys->fpr)
|
||||
{
|
||||
@ -977,7 +978,7 @@ set_recipients (engine_gpgsm_t gpgsm, gpgme_key_t recp[])
|
||||
}
|
||||
fpr = recp[i]->subkeys->fpr;
|
||||
|
||||
int newlen = 11 + strlen (fpr);
|
||||
newlen = 11 + strlen (fpr);
|
||||
if (linelen < newlen)
|
||||
{
|
||||
char *newline = realloc (line, newlen);
|
||||
|
Loading…
Reference in New Issue
Block a user