2003-05-26 Marcus Brinkmann <marcus@g10code.de>

* recipient.c (gpgme_recipients_add_name_with_validity): Add one
	to buffer to allocate.
This commit is contained in:
Marcus Brinkmann 2003-05-26 19:13:15 +00:00
parent c341e29590
commit 673cbb3e81
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2003-05-26 Marcus Brinkmann <marcus@g10code.de>
* recipient.c (gpgme_recipients_add_name_with_validity): Add one
to buffer to allocate.
2003-05-19 Marcus Brinkmann <marcus@g10code.de>
* verify.c (parse_new_sig): Fix ERRSIG case.

View File

@ -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;