]> git.sur5r.net Git - openldap/commitdiff
use strcpy instead of sprintf when all we have is two args (source and dest)
authorBen Collins <bcollins@openldap.org>
Mon, 24 Apr 2000 16:44:16 +0000 (16:44 +0000)
committerBen Collins <bcollins@openldap.org>
Mon, 24 Apr 2000 16:44:16 +0000 (16:44 +0000)
servers/slurpd/config.c

index fb226022edc1febca94a8af3ddb97d19fcd6885f..1df612324005a4dfa56b056644991200f7cd96e6 100644 (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 );