- fixed strlen bug

This commit is contained in:
Martin Willi 2005-11-17 11:22:16 +00:00
parent 563081a36d
commit 9abdf3b198
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ initiate_ike_sa_job_t *initiate_ike_sa_job_create(char *configuration_name)
this->public.destroy = (status_t (*)(initiate_ike_sa_job_t *)) destroy;
/* private variables */
this->configuration_name = allocator_alloc(sizeof(configuration_name) + 1);
this->configuration_name = allocator_alloc(strlen(configuration_name) + 1);
if (this->configuration_name == NULL)
{
allocator_free(this);