From: Ben Collins Date: Mon, 24 Apr 2000 16:44:16 +0000 (+0000) Subject: use strcpy instead of sprintf when all we have is two args (source and dest) X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~3090 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4319e67736dcb2f0f4acb88dbb65ceb2978862fe;p=openldap use strcpy instead of sprintf when all we have is two args (source and dest) --- diff --git a/servers/slurpd/config.c b/servers/slurpd/config.c index fb226022ed..1df6123240 100644 --- a/servers/slurpd/config.c +++ b/servers/slurpd/config.c @@ -104,7 +104,7 @@ slurpd_read_config( lineno, cargv[1] ); fprintf( stderr, "line (ignored)\n" ); } - sprintf( sglob->slapd_replogfile, cargv[1] ); + strcpy( sglob->slapd_replogfile, cargv[1] ); } } else if ( strcasecmp( cargv[0], "replica" ) == 0 ) { add_replica( cargv, cargc );