Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment