Many security improvements (CHATS) and a warning fix.

This commit is contained in:
Ben Laurie
2002-11-12 13:23:40 +00:00
parent 707ceb29e0
commit 9831d941ca
111 changed files with 755 additions and 480 deletions

View File

@@ -203,8 +203,9 @@ const char *RAND_file_name(char *buf, size_t size)
s=getenv("RANDFILE");
if (s != NULL)
{
strncpy(buf,s,size-1);
buf[size-1]='\0';
if(strlen(s) >= size)
return NULL;
strcpy(buf,s);
ret=buf;
}
else