use strcpy instead of sprintf when all we have is two args (source and dest)

This commit is contained in:
Ben Collins 2000-04-24 16:44:16 +00:00
parent 50a41f3ee2
commit 4319e67736

View file

@ -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 );