mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-10 14:23:34 -05:00
use sizeof not strlen
This commit is contained in:
parent
4aa2a28692
commit
f418f6247f
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue