From: Kurt Zeilenga Date: Wed, 2 Jan 2002 16:57:30 +0000 (+0000) Subject: use sizeof not strlen X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~364 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f418f6247f64093341081e07722e8cf2a09127b0;p=openldap use sizeof not strlen --- diff --git a/servers/slurpd/args.c b/servers/slurpd/args.c index 9c4df43346..95b936d8de 100644 --- a/servers/slurpd/args.c +++ b/servers/slurpd/args.c @@ -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: