summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-04-03 13:53:57 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:15:52 -0500
commit93386ba1cfc5aaaef73d143d2bae7c6c5725f7d8 (patch)
treee5cb1cc64da1e06eab87e693884f52a61c90f238 /source3
parentc398ea247bd9686458fa088580c09f90f8603dbf (diff)
downloadsamba-93386ba1cfc5aaaef73d143d2bae7c6c5725f7d8.tar.gz
samba-93386ba1cfc5aaaef73d143d2bae7c6c5725f7d8.tar.bz2
samba-93386ba1cfc5aaaef73d143d2bae7c6c5725f7d8.zip
r14889: Fix smbwrapper compile
(This used to be commit 0f087fd40ad502513c3775587c07c86fc53bf718)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbwrapper/shared.c4
-rw-r--r--source3/smbwrapper/smbw_dir.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbwrapper/shared.c b/source3/smbwrapper/shared.c
index ca8df5841d..c7f1951f8b 100644
--- a/source3/smbwrapper/shared.c
+++ b/source3/smbwrapper/shared.c
@@ -111,7 +111,7 @@ char *smbw_getshared(const char *name)
if (fstat(shared_fd, &st)) goto failed;
if (st.st_size != shared_size) {
- var = (char *)Realloc(variables, st.st_size);
+ var = (char *)Realloc(variables, st.st_size, True);
if (!var) goto failed;
else variables = var;
shared_size = st.st_size;
@@ -167,7 +167,7 @@ void smbw_setshared(const char *name, const char *val)
l1 = strlen(name)+1;
l2 = strlen(val)+1;
- var = (char *)Realloc(variables, shared_size + l1+l2+4);
+ var = (char *)Realloc(variables, shared_size + l1+l2+4, True);
if (!var) {
DEBUG(0,("out of memory in smbw_setshared\n"));
diff --git a/source3/smbwrapper/smbw_dir.c b/source3/smbwrapper/smbw_dir.c
index a89af54e1a..8ba1de4726 100644
--- a/source3/smbwrapper/smbw_dir.c
+++ b/source3/smbwrapper/smbw_dir.c
@@ -85,7 +85,7 @@ static void smbw_dir_add(struct file_info *finfo, const char *mask,
if (cur_dir->malloced == cur_dir->count) {
cdl = (struct file_info *)Realloc(cur_dir->list,
sizeof(cur_dir->list[0])*
- (cur_dir->count+100));
+ (cur_dir->count+100), True);
if (!cdl) {
/* oops */
return;