Newer
Older
if (str == NULL) return;
str[0]='\0';
n=0;
for (i=0; i<num; i++)
{
/* ignore NULLs, thanks to Bob Beck <beck@obtuse.com> */
if (a != NULL)
n+=strlen(a);
if (n > s)
Richard Levitte
committed
p=OPENSSL_realloc(str,s+1);
if (p == NULL)
{
Richard Levitte
committed
OPENSSL_free(str);
Richard Levitte
committed
goto err;
}
else
str=p;
strcat(str,a);
}
}
ERR_set_error_data(str,ERR_TXT_MALLOCED|ERR_TXT_STRING);
Richard Levitte
committed
err: