aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcus Brinkmann <[email protected]>2003-05-26 19:13:15 +0000
committerMarcus Brinkmann <[email protected]>2003-05-26 19:13:15 +0000
commit673cbb3e81e63cac51e6d3cbcd7e84bd435843b0 (patch)
tree3c8329c75411b829814d2af18d4ad7ba9cda3a9c
parent2003-05-19 Marcus Brinkmann <[email protected]> (diff)
downloadgpgme-673cbb3e81e63cac51e6d3cbcd7e84bd435843b0.tar.gz
gpgme-673cbb3e81e63cac51e6d3cbcd7e84bd435843b0.zip
2003-05-26 Marcus Brinkmann <[email protected]>
* recipient.c (gpgme_recipients_add_name_with_validity): Add one to buffer to allocate.
-rw-r--r--gpgme/ChangeLog5
-rw-r--r--gpgme/recipient.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gpgme/ChangeLog b/gpgme/ChangeLog
index 623cf203..43561a46 100644
--- a/gpgme/ChangeLog
+++ b/gpgme/ChangeLog
@@ -1,3 +1,8 @@
+2003-05-26 Marcus Brinkmann <[email protected]>
+
+ * recipient.c (gpgme_recipients_add_name_with_validity): Add one
+ to buffer to allocate.
+
2003-05-19 Marcus Brinkmann <[email protected]>
* verify.c (parse_new_sig): Fix ERRSIG case.
diff --git a/gpgme/recipient.c b/gpgme/recipient.c
index 51d47345..e592b4b9 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;