summaryrefslogtreecommitdiff
path: root/loadparm.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2003-12-06 21:07:27 +0000
committerWayne Davison <wayned@samba.org>2003-12-06 21:07:27 +0000
commit58cadc8608fbb2cbc7b74578cd92de4337a4b887 (patch)
tree2a6d671629752eb4f319556b8d8438d535b8cd44 /loadparm.c
parentb11b50bcd026a0a052bdfab7b96c97045b658d86 (diff)
downloadrsync-58cadc8608fbb2cbc7b74578cd92de4337a4b887.tar.gz
rsync-58cadc8608fbb2cbc7b74578cd92de4337a4b887.tar.bz2
rsync-58cadc8608fbb2cbc7b74578cd92de4337a4b887.zip
Merged in the security fixes from 2.5.7.
Diffstat (limited to 'loadparm.c')
-rw-r--r--loadparm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/loadparm.c b/loadparm.c
index 9dc80e70..d9ce1577 100644
--- a/loadparm.c
+++ b/loadparm.c
@@ -441,10 +441,10 @@ static int add_a_service(service *pservice, char *name)
i = iNumServices;
- ServicePtrs = (service **)Realloc(ServicePtrs,sizeof(service *)*num_to_alloc);
+ ServicePtrs = realloc_array(ServicePtrs, service *, num_to_alloc);
if (ServicePtrs)
- pSERVICE(iNumServices) = (service *)malloc(sizeof(service));
+ pSERVICE(iNumServices) = new(service);
if (!ServicePtrs || !pSERVICE(iNumServices))
return(-1);