From 14b3ead693503c984dfd4f52469eb38482ebee21 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Tue, 22 Jul 2003 11:30:39 +0000 Subject: [PATCH] 2003-07-22 Marcus Brinkmann * engine-gpgsm.c (set_recipients): Move declaration of NEWLEN to the beginning of the block. --- trunk/gpgme/ChangeLog | 5 +++++ trunk/gpgme/engine-gpgsm.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/trunk/gpgme/ChangeLog b/trunk/gpgme/ChangeLog index 06a2c02..a483650 100644 --- a/trunk/gpgme/ChangeLog +++ b/trunk/gpgme/ChangeLog @@ -1,3 +1,8 @@ +2003-07-22 Marcus Brinkmann + + * engine-gpgsm.c (set_recipients): Move declaration of NEWLEN to + the beginning of the block. + 2003-06-22 Marcus Brinkmann * data-mem.c (mem_write): Copy original buffer content. diff --git a/trunk/gpgme/engine-gpgsm.c b/trunk/gpgme/engine-gpgsm.c index 9e17f68..6ab1ad5 100644 --- a/trunk/gpgme/engine-gpgsm.c +++ b/trunk/gpgme/engine-gpgsm.c @@ -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); -- 2.26.2