]> git.sur5r.net Git - openldap/commitdiff
use sizeof not strlen
authorKurt Zeilenga <kurt@openldap.org>
Wed, 2 Jan 2002 16:57:30 +0000 (16:57 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 2 Jan 2002 16:57:30 +0000 (16:57 +0000)
servers/slurpd/args.c

index 9c4df43346d534d2d2840488022104bbab6edccd..95b936d8deab17d3ff481858bbe58cd27ef9c984 100644 (file)
@@ -119,7 +119,7 @@ doargs(
            rflag++;
            break;
        case 't':       /* dir to use for our copies of replogs */
-           g->slurpd_rdir = (char *)malloc (strlen(optarg) + strlen("/replica") + 1);
+           g->slurpd_rdir = (char *)malloc (strlen(optarg) + sizeof("/replica"));
            sprintf(g->slurpd_rdir, "%s/replica", optarg);
            break;
        default: