X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslurpd%2Fsanity.c;h=0927e597f2982b8986231bfe63cfc6c85edd4a57;hb=3868f3b5a7ebdbc098945df8401673905fa2e8a1;hp=271b1f1cb4ab5f9614ff73b3aea5623e9a026759;hpb=3d491808a8d12428eae124e73c49876befef3286;p=openldap diff --git a/servers/slurpd/sanity.c b/servers/slurpd/sanity.c index 271b1f1cb4..0927e597f2 100644 --- a/servers/slurpd/sanity.c +++ b/servers/slurpd/sanity.c @@ -1,6 +1,6 @@ /* $OpenLDAP$ */ /* - * Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved. + * Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved. * COPYING RESTRICTIONS APPLY, see COPYRIGHT file */ /* @@ -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';