X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslurpd%2Fargs.c;h=af03b10654e89888a12015f25641e460262e3391;hb=fd810bb35ebcae78d9e9393af51873f1b404ee02;hp=409fd08fdb4405656550f34559759bb85b5d3fcf;hpb=b1770ee0986032604c8c4da92a9e148c94f80eb8;p=openldap diff --git a/servers/slurpd/args.c b/servers/slurpd/args.c index 409fd08fdb..af03b10654 100644 --- a/servers/slurpd/args.c +++ b/servers/slurpd/args.c @@ -1,4 +1,8 @@ /* $OpenLDAP$ */ +/* + * Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved. + * COPYING RESTRICTIONS APPLY, see COPYRIGHT file + */ /* * Copyright (c) 1996 Regents of the University of Michigan. * All rights reserved. @@ -115,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: