]> 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:01 +0000 (16:44 +0000)
committerBen Collins <bcollins@openldap.org>
Mon, 24 Apr 2000 16:44:01 +0000 (16:44 +0000)
servers/slurpd/config.c

index 47d8fb419add4b00f68b308c65df6cf7e9e24d5f..a50d761194e5f1a899061f86e9198bf50aa8a06b 100644 (file)
@@ -103,7 +103,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 );