From: Marcus Brinkmann Date: Mon, 26 May 2003 19:13:15 +0000 (+0000) Subject: 2003-05-26 Marcus Brinkmann X-Git-Tag: gpgme-1.2.0@1385~624 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a278fa28ee485c3340e1baf2ee828773d54477c6;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/trunk/gpgme/ChangeLog b/trunk/gpgme/ChangeLog index 623cf20..43561a4 100644 --- a/trunk/gpgme/ChangeLog +++ b/trunk/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/trunk/gpgme/recipient.c b/trunk/gpgme/recipient.c index 51d4734..e592b4b 100644 --- a/trunk/gpgme/recipient.c +++ b/trunk/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;