Commit 2ea09100 authored by Bodo Möller's avatar Bodo Möller
Browse files

Avoid sprintf, and harmonize indentation.

parent 33399fde
Loading
Loading
Loading
Loading
+76 −73
Original line number Diff line number Diff line
@@ -729,6 +729,7 @@ int SSL_add_dir_cert_subjects_to_stack(STACK_OF(X509_NAME) *stack,
	while((dstruct=readdir(d)))
		{
		char buf[1024];
		int r;
		
		if(strlen(dir)+strlen(dstruct->d_name)+2 > sizeof buf)
			{
@@ -736,7 +737,9 @@ int SSL_add_dir_cert_subjects_to_stack(STACK_OF(X509_NAME) *stack,
			goto err;
			}
		
	sprintf(buf,"%s/%s",dir,dstruct->d_name);
		r = BIO_snprintf(buf,sizeof buf,"%s/%s",dir,dstruct->d_name);
		if (r <= 0 || r >= sizeof buf)
			goto err;
		if(!SSL_add_file_cert_subjects_to_stack(stack,buf))
			goto err;
		}