diff options
Diffstat (limited to '')
-rw-r--r-- | gpgme/recipient.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |