]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
corrected allocation size
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Wed, 6 Mar 2013 23:51:49 +0000 (00:51 +0100)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Wed, 6 Mar 2013 23:51:49 +0000 (00:51 +0100)
lib/x509_b64.c

index dd1bdf265619a5f7756146d8256d7fe763ea4bb7..9e727b5f519152612de4468ccf693283350caad4 100644 (file)
@@ -201,7 +201,7 @@ cpydata (const uint8_t * data, int data_size, gnutls_datum_t *result)
 {
   int i, j;
 
-  result->data = gnutls_malloc (data_size);
+  result->data = gnutls_malloc (data_size+1);
   if (result->data == NULL)
     return GNUTLS_E_MEMORY_ERROR;