Commit f1047b70 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

ITS#2010: use snprintf instead of strcpy to prevent buffer overflow

parent 3f2faa1a
......@@ -185,7 +185,7 @@ filecheck(
char *p;
unsigned int ret = 0;
strcpy( dir, f );
snprintf( dir, sizeof dir, "%s", f );
p = strrchr( dir, LDAP_DIRSEP[0] );
if ( p != NULL ) {
*p = '\0';
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment