From: Marcus Brinkmann Date: Mon, 26 May 2003 19:13:15 +0000 (+0000) Subject: 2003-05-26 Marcus Brinkmann X-Git-Tag: gpgme-0-4-1~32 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=673cbb3e81e63cac51e6d3cbcd7e84bd435843b0;p=gpgme.git 2003-05-26 Marcus Brinkmann * recipient.c (gpgme_recipients_add_name_with_validity): Add one to buffer to allocate. --- diff --git a/gpgme/ChangeLog b/gpgme/ChangeLog index 623cf20..43561a4 100644 --- a/gpgme/ChangeLog +++ b/gpgme/ChangeLog @@ -1,3 +1,8 @@ +2003-05-26 Marcus Brinkmann + + * recipient.c (gpgme_recipients_add_name_with_validity): Add one + to buffer to allocate. + 2003-05-19 Marcus Brinkmann * verify.c (parse_new_sig): Fix ERRSIG case. diff --git a/gpgme/recipient.c b/gpgme/recipient.c index 51d4734..e592b4b 100644 --- a/gpgme/recipient.c +++ b/gpgme/recipient.c @@ -69,7 +69,7 @@ gpgme_recipients_add_name_with_validity (gpgme_recipients_t rset, if (!name || !rset) return GPGME_Invalid_Value; - uid = malloc (sizeof (*uid) + strlen (name)); + uid = malloc (sizeof (*uid) + strlen (name) + 1); if (!uid) return GPGME_Out_Of_Core; uid->validity = validity;